#include <ExecutionEnvironment.h>
Public Member Functions | |
ExecutionEnvironment () | |
~ExecutionEnvironment () | |
int | linenumber () const |
void | setLinenumber (int line) |
const string | filename () const |
void | setFilename (const string &filename) |
YStatementPtr | statement () const |
void | setStatement (YStatementPtr s) |
void | pushframe (string called_function) |
void | popframe () |
string | backtrace (uint skip=0) |
Private Attributes | |
int | m_linenumber |
string | m_filename |
bool | m_forced_filename |
YStatementPtr | m_statement |
stack< CallFrame * > | m_backtrace |
m_forced_filename is a way to enforce a given filename until another block is entered (or the current one is left). Used for include statements, where top level block does not exist.
|
|
|
|
|
Return the string containing the current backtrace.
|
|
Get the current file name. |
|
Get the current line number. |
|
Pop the top call frame from the backtrace stack. |
|
Push another call frame to the backtrace stack according to the current information.
|
|
Set the current file name for error outputs. |
|
Set the current line number. |
|
Set the currently evaluated statement. |
|
Return the currently evaluated statement. |
|
|
|
|
|
|
|
|
|
|