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 sLength = match[1];
|
||||||
std::string name = match[2];
|
std::string name = match[2];
|
||||||
|
|
||||||
unsigned long length = 0;
|
unsigned long length = std::stoul(sLength);
|
||||||
|
|
||||||
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) {
|
|
||||||
if (name.length() == length) {
|
if (name.length() == length) {
|
||||||
className = name;
|
className = name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//.?AVPolygon@@
|
//.?AVPolygon@@
|
||||||
//.?AVtype_info@@
|
//.?AVtype_info@@
|
||||||
else if (compiler == "ms") {
|
else if (compiler == "ms") {
|
||||||
|
|
|
@ -989,11 +989,11 @@ void RA_Shutdown()
|
||||||
// Call shutdown on toolchain
|
// Call shutdown on toolchain
|
||||||
if (_RA_Shutdown != nullptr)
|
if (_RA_Shutdown != nullptr)
|
||||||
{
|
{
|
||||||
#ifdef __cplusplus
|
#if defined(__cplusplus) && _HAS_EXCEPTIONS
|
||||||
try {
|
try {
|
||||||
#endif
|
#endif
|
||||||
_RA_Shutdown();
|
_RA_Shutdown();
|
||||||
#ifdef __cplusplus
|
#if defined(__cplusplus) && _HAS_EXCEPTIONS
|
||||||
}
|
}
|
||||||
catch (std::runtime_error&) {
|
catch (std::runtime_error&) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue