MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetExceptionLineNumber

Method GetExceptionLineNumber

sdk/angelscript/source/as_context.cpp:5658–5675  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

5656
5657// interface
5658int asCContext::GetExceptionLineNumber(int *column, const char **sectionName)
5659{
5660 // Return the last exception even if the context is no longer in the exception state
5661 // if( GetState() != asEXECUTION_EXCEPTION ) return asERROR;
5662
5663 if( column ) *column = m_exceptionColumn;
5664
5665 if( sectionName )
5666 {
5667 // The section index can be -1 if the exception was raised in a generated function, e.g. $fact for templates
5668 if( m_exceptionSectionIdx >= 0 )
5669 *sectionName = m_engine->scriptSectionNames[m_exceptionSectionIdx]->AddressOf();
5670 else
5671 *sectionName = 0;
5672 }
5673
5674 return m_exceptionLine;
5675}
5676
5677// interface
5678asIScriptFunction *asCContext::GetExceptionFunction()

Callers 15

ExecuteCallMethod · 0.80
RunApplicationFunction · 0.80
RunApplicationFunction · 0.80
InitGlobalPropMethod · 0.80
GetExceptionInfoFunction · 0.80
TestFunction · 0.80
ExceptionCallbackFunction · 0.80
TestFunction · 0.80
test_exception.cppFile · 0.80
TestFunction · 0.80
TestHandleMemberCallingFunction · 0.80
ExecuteScriptFunction · 0.80

Calls 1

AddressOfMethod · 0.45

Tested by 15

TestFunction · 0.64
ExceptionCallbackFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestHandleMemberCallingFunction · 0.64
ExecuteScriptFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64