mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Start from the outer namespace when catching or throwing exceptions in the Sqrat library.
This commit is contained in:
		@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user