interface
| 890 | |
| 891 | // interface |
| 892 | int 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 |
| 908 | int asCScriptFunction::GetLineNumber(int programPosition, int *sectionIdx) |