mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-03-14 16:17:13 +01:00
Start from the outer namespace when catching or throwing exceptions in the Sqrat library.
This commit is contained in:
parent
324ee99260
commit
92faaccf06
@ -125,15 +125,15 @@ namespace Sqrat {
|
|||||||
#define SQWHAT(vm) _SC("")
|
#define SQWHAT(vm) _SC("")
|
||||||
#define SQWHAT_NOEXCEPT(vm) _SC("")
|
#define SQWHAT_NOEXCEPT(vm) _SC("")
|
||||||
#elif defined (SCRAT_USE_EXCEPTIONS)
|
#elif defined (SCRAT_USE_EXCEPTIONS)
|
||||||
#define SQCATCH(vm) } catch (const Sqrat::Exception& e)
|
#define SQCATCH(vm) } catch (const ::Sqrat::Exception& e)
|
||||||
#define SQCATCH_NOEXCEPT(vm) if (SQRAT_CONST_CONDITION(false))
|
#define SQCATCH_NOEXCEPT(vm) if (SQRAT_CONST_CONDITION(false))
|
||||||
#define SQCLEAR(vm)
|
#define SQCLEAR(vm)
|
||||||
#ifdef _MSC_VER // avoid MSVC's "unreachable code" warning
|
#ifdef _MSC_VER // avoid MSVC's "unreachable code" warning
|
||||||
#define SQRETHROW(vm) if (SQRAT_CONST_CONDITION(true)) throw
|
#define SQRETHROW(vm) if (SQRAT_CONST_CONDITION(true)) throw
|
||||||
#define SQTHROW(vm, err) if (SQRAT_CONST_CONDITION(true)) throw Sqrat::Exception(err)
|
#define SQTHROW(vm, err) if (SQRAT_CONST_CONDITION(true)) throw ::Sqrat::Exception(err)
|
||||||
#else
|
#else
|
||||||
#define SQRETHROW(vm) throw
|
#define SQRETHROW(vm) throw
|
||||||
#define SQTHROW(vm, err) throw Sqrat::Exception(err)
|
#define SQTHROW(vm, err) throw ::Sqrat::Exception(err)
|
||||||
#endif
|
#endif
|
||||||
#define SQTRY() try {
|
#define SQTRY() try {
|
||||||
#define SQWHAT(vm) e.Message().c_str()
|
#define SQWHAT(vm) e.Message().c_str()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user