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

Method GetDeclaredAt

sdk/angelscript/source/as_scriptfunction.cpp:892–905  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

890
891// interface
892int asCScriptFunction::GetDeclaredAt(const char** scriptSection, int* row, int* col) const
893{
894 if (!scriptData)
895 {
896 if (scriptSection) *scriptSection = 0;
897 if (row) *row = 0;
898 if (col) *col = 0;
899 return asNOT_SUPPORTED;
900 }
901 if (scriptSection) *scriptSection = scriptData->scriptSectionIdx >= 0 ? engine->scriptSectionNames[scriptData->scriptSectionIdx]->AddressOf() : 0;
902 if (row) *row = scriptData->declaredAt & 0xFFFFF;
903 if (col) *col = scriptData->declaredAt >> 20;
904 return 0;
905}
906
907// internal
908int asCScriptFunction::GetLineNumber(int programPosition, int *sectionIdx)

Callers 4

InitGlobalPropMethod · 0.80
test_debug.cppFile · 0.80
TestFunction · 0.80
test_saveload.cppFile · 0.80

Calls 1

AddressOfMethod · 0.45

Tested by 1

TestFunction · 0.64