mirror of https://github.com/PCSX2/pcsx2.git
3rdparty: Remove exception usage
This commit is contained in:
parent
adca796d94
commit
1dbccb5e3d
|
@ -4764,26 +4764,12 @@ void cGram::demangleClassName(const std::string& input, cName* retvalue, cGram::
|
|||
std::string sLength = match[1];
|
||||
std::string name = match[2];
|
||||
|
||||
unsigned long length = 0;
|
||||
|
||||
bool ok = true;
|
||||
try {
|
||||
length = std::stoul(sLength);
|
||||
}
|
||||
catch (const std::invalid_argument&) {
|
||||
ok = false;
|
||||
}
|
||||
catch (const std::out_of_range&) {
|
||||
ok = false;
|
||||
}
|
||||
|
||||
if (ok) {
|
||||
unsigned long length = std::stoul(sLength);
|
||||
if (name.length() == length) {
|
||||
className = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//.?AVPolygon@@
|
||||
//.?AVtype_info@@
|
||||
else if (compiler == "ms") {
|
||||
|
|
|
@ -989,11 +989,11 @@ void RA_Shutdown()
|
|||
// Call shutdown on toolchain
|
||||
if (_RA_Shutdown != nullptr)
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus) && _HAS_EXCEPTIONS
|
||||
try {
|
||||
#endif
|
||||
_RA_Shutdown();
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus) && _HAS_EXCEPTIONS
|
||||
}
|
||||
catch (std::runtime_error&) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue