interface
| 5656 | |
| 5657 | // interface |
| 5658 | int 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 |
| 5678 | asIScriptFunction *asCContext::GetExceptionFunction() |