public

Inheritance Graph

graph BT
	RuntimeInternals
	click RuntimeInternals "classEScript_1_1RuntimeInternals"

Description

[ RuntimeInternals ]

Main

   
   
  RuntimeInternals( Runtime & rt)
   
  ~RuntimeInternals()
   
void warn(const std::string & message) const
   
void setException(const std::string & message) const

Function execution

   
   
RtValue startFunctionExecution(const ObjPtr & fun, const ObjPtr & callingObject, ParameterValues & params)
   
RtValue startInstanceCreation( EPtr < Type > type, ParameterValues & params)
   
ObjRef executeFunctionCallContext( _Ptr < FunctionCallContext > fcc)
   
ObjPtr getCallingObject() const
   
size_t getStackSize() const
   
size_t _getStackSizeLimit() const
   
void _setStackSizeLimit(const size_t limit)

Globals

   
   
ObjPtr getGlobalVariable(const StringId & id)
   
Namespace * getGlobals() const

Information

   
   
int getCurrentLine() const
   
std::string getCurrentFile() const
   
std::string getStackInfo()
   
std::string getLocalStackInfo()

Internal state / Exceptions

   
   
enum state_t {STATE_NORMAL, STATE_EXITING, STATE_EXCEPTION}
   
bool checkNormalState() const
   
ObjRef fetchAndClearException()
   
ObjRef fetchAndClearExitResult()
   
state_t getState() const
   
void setAddStackInfoToExceptions(bool b)
   
void setException(const std::string & s)
   
void setException( Exception * e)
   
void throwException(const std::string & s, Object * obj)
   
void setExitState( ObjRef value)
   
void setExceptionState( ObjRef value)

System calls

   
   
RtValue sysCall(uint32_t sysFnId, ParameterValues & params)

Documentation

function
EScript::RuntimeInternals::RuntimeInternals

public
     
     
RuntimeInternals( Runtime & rt )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:26


function
EScript::RuntimeInternals::~RuntimeInternals

public
   
   
~RuntimeInternals( )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:27


function
EScript::RuntimeInternals::warn

public const
     
     
void warn( const std::string & message ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:29


function
EScript::RuntimeInternals::setException

public const inline
     
     
void setException( const std::string & message ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:30


function
EScript::RuntimeInternals::startFunctionExecution

public
     
     
RtValue startFunctionExecution( const ObjPtr & fun,
  const ObjPtr & callingObject,
  ParameterValues & params
)    

(internal) Start the execution of a function. A c++ function is executed immediatly and the result is <result,nullptr>. A UserFunction produces a FunctionCallContext which still has to be executed. The result is then result.isFunctionCallContext() == true

Note: theparamsvalue may be altered by this function and should not be used afterwards!

Defined in EScript/EScript/Runtime/RuntimeInternals.h:42


function
EScript::RuntimeInternals::startInstanceCreation

public
     
     
RtValue startInstanceCreation( EPtr < Type > type,
  ParameterValues & params
)    

Defined in EScript/EScript/Runtime/RuntimeInternals.h:44


function
EScript::RuntimeInternals::executeFunctionCallContext

public
     
     
ObjRef executeFunctionCallContext( _Ptr < FunctionCallContext > fcc )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:46


function
EScript::RuntimeInternals::getCallingObject

public const inline
   
   
ObjPtr getCallingObject( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:48


function
EScript::RuntimeInternals::getStackSize

public const inline
   
   
size_t getStackSize( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:49


function
EScript::RuntimeInternals::_getStackSizeLimit

public const inline
   
   
size_t _getStackSizeLimit( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:50


function
EScript::RuntimeInternals::_setStackSizeLimit

public inline
     
     
void _setStackSizeLimit( const size_t limit )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:51


function
EScript::RuntimeInternals::getGlobalVariable

public
     
     
ObjPtr getGlobalVariable( const StringId & id )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:72


function
EScript::RuntimeInternals::getGlobals

public const
   
   
Namespace * getGlobals( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:73


function
EScript::RuntimeInternals::getCurrentLine

public const
   
   
int getCurrentLine( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:83


function
EScript::RuntimeInternals::getCurrentFile

public const
   
   
std::string getCurrentFile( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:84


function
EScript::RuntimeInternals::getStackInfo

public
   
   
std::string getStackInfo( )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:86


function
EScript::RuntimeInternals::getLocalStackInfo

public
   
   
std::string getLocalStackInfo( )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:87


enum
EScript::RuntimeInternals::state_t

public
 
 
enum state_t
Enumerator   Description
Enumerator   Description
STATE_NORMAL    
STATE_EXITING    
STATE_EXCEPTION    

Defined in EScript/EScript/Runtime/RuntimeInternals.h:95


function
EScript::RuntimeInternals::checkNormalState

public const inline
   
   
bool checkNormalState( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:96


function
EScript::RuntimeInternals::fetchAndClearException

public inline
   
   
ObjRef fetchAndClearException( )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:98


function
EScript::RuntimeInternals::fetchAndClearExitResult

public inline
   
   
ObjRef fetchAndClearExitResult( )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:105


function
EScript::RuntimeInternals::getState

public const inline
   
   
state_t getState( ) const

Defined in EScript/EScript/Runtime/RuntimeInternals.h:113


function
EScript::RuntimeInternals::setAddStackInfoToExceptions

public inline
     
     
void setAddStackInfoToExceptions( bool b )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:116


function
EScript::RuntimeInternals::setException

public
     
     
void setException( const std::string & s )

Creates an exception object including current stack info and sets the state to STATE_EXCEPTION. Does NOT throw a C++ exception.

Defined in EScript/EScript/Runtime/RuntimeInternals.h:120


function
EScript::RuntimeInternals::setException

public
     
     
void setException( Exception * e )

Annotates the given Exception with the current stack info and set the state to STATE_EXCEPTION. Does NOT throw a C++ exception.

Defined in EScript/EScript/Runtime/RuntimeInternals.h:124


function
EScript::RuntimeInternals::throwException

public
     
     
void throwException( const std::string & s,
  Object * obj
)    

Throws a runtime exception (a C++ Exception , not an internal one!). Should only be used inside of library-functions (otherwise, they are not handled and the program is likely to crash). In all other situations try to use setException(…)

Defined in EScript/EScript/Runtime/RuntimeInternals.h:132


function
EScript::RuntimeInternals::setExitState

public inline
     
     
void setExitState( ObjRef value )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:134


function
EScript::RuntimeInternals::setExceptionState

public inline
     
     
void setExceptionState( ObjRef value )

Defined in EScript/EScript/Runtime/RuntimeInternals.h:138


function
EScript::RuntimeInternals::sysCall

public
     
     
RtValue sysCall( uint32_t sysFnId,
  ParameterValues & params
)    

Defined in EScript/EScript/Runtime/RuntimeInternals.h:159