36 catch( std::exception &e )
39 ctx->SetException(e.what());
52\see \ref doc_addon_helpers
"GetExceptionInfo" helper function
54\note The ability to
catch exceptions can be turned off by compiling the library with the AS_NO_EXCEPTIONS defined. If
this is done, the application should not
register any functions that may
throw exceptions, as the end result will be
55undefined should an exception occur.
57\section doc_cpp_exceptions_2 longjmp
59Some applications uses longjmp to
do error handling. When performing a longjmp to a previously saved state, there is no chance
for the code to
do a cleanup of all that happened after the saved state. Because of that the application must not
register functions that can perform a longjmp out from the function, as that can leave the
virtual machine in an undefined state.
@ asCALL_CDECL
A cdecl function.
#define asFUNCTION(f)
Returns an asSFuncPtr representing the function specified by the name.