LMMS
Loading...
Searching...
No Matches
eelScriptInst Class Reference

#include <eelscript.h>

Classes

struct  evalCacheEnt

Public Member Functions

 eelScriptInst ()
virtual ~eelScriptInst ()
NSEEL_CODEHANDLE compile_code (const char *code, const char **err)
int runcode (const char *code, int showerr, const char *showerrfn, bool canfree, bool ignoreEndOfInputChk, bool doExec)
int loadfile (const char *fn, const char *callerfn, bool allowstdin)
virtual EEL_F OpenFile (const char *fn, const char *mode)
virtual EEL_F CloseFile (int fp_idx)
virtual FILE * GetFileFP (int fp_idx)
virtual bool translateFilename (WDL_FastString *fs, const char *mode)
virtual bool GetFilenameForParameter (EEL_F idx, WDL_FastString *fs, int iswrite)
virtual char * evalCacheGet (const char *str, NSEEL_CODEHANDLE *ch)
virtual void evalCacheDispose (char *key, NSEEL_CODEHANDLE ch)
void runCodeQ (WDL_Queue *q, const char *fname)
void runAtExitCode ()
virtual bool run_deferred ()
virtual bool has_deferred ()

Static Public Member Functions

static int init ()

Public Attributes

NSEEL_VMCTX m_vm
WDL_PtrList< voidm_code_freelist
FILE * m_handles [EELSCRIPT_MAX_FILE_HANDLES]
eel_string_context_statem_string_context
eel_net_statem_net_state
eel_lice_statem_gfx_state
int m_eval_depth
WDL_TypedBuf< evalCacheEntm_eval_cache
WDL_Queue m_defer_eval
WDL_Queue m_atexit_eval
WDL_StringKeyedArray< bool > m_loaded_fnlist

Constructor & Destructor Documentation

◆ eelScriptInst()

eelScriptInst::eelScriptInst ( )

◆ ~eelScriptInst()

eelScriptInst::~eelScriptInst ( )
virtual

Member Function Documentation

◆ CloseFile()

virtual EEL_F eelScriptInst::CloseFile ( int fp_idx)
inlinevirtual

◆ compile_code()

NSEEL_CODEHANDLE eelScriptInst::compile_code ( const char * code,
const char ** err )

◆ evalCacheDispose()

void eelScriptInst::evalCacheDispose ( char * key,
NSEEL_CODEHANDLE ch )
virtual

◆ evalCacheGet()

char * eelScriptInst::evalCacheGet ( const char * str,
NSEEL_CODEHANDLE * ch )
virtual

◆ GetFileFP()

virtual FILE * eelScriptInst::GetFileFP ( int fp_idx)
inlinevirtual

◆ GetFilenameForParameter()

bool eelScriptInst::GetFilenameForParameter ( EEL_F idx,
WDL_FastString * fs,
int iswrite )
virtual

◆ has_deferred()

bool eelScriptInst::has_deferred ( )
virtual

◆ init()

int eelScriptInst::init ( )
static

◆ loadfile()

int eelScriptInst::loadfile ( const char * fn,
const char * callerfn,
bool allowstdin )

◆ OpenFile()

virtual EEL_F eelScriptInst::OpenFile ( const char * fn,
const char * mode )
inlinevirtual

◆ run_deferred()

bool eelScriptInst::run_deferred ( )
virtual

◆ runAtExitCode()

void eelScriptInst::runAtExitCode ( )
inline

◆ runcode()

int eelScriptInst::runcode ( const char * code,
int showerr,
const char * showerrfn,
bool canfree,
bool ignoreEndOfInputChk,
bool doExec )

◆ runCodeQ()

void eelScriptInst::runCodeQ ( WDL_Queue * q,
const char * fname )

◆ translateFilename()

virtual bool eelScriptInst::translateFilename ( WDL_FastString * fs,
const char * mode )
inlinevirtual

Member Data Documentation

◆ m_atexit_eval

WDL_Queue eelScriptInst::m_atexit_eval

◆ m_code_freelist

WDL_PtrList<void> eelScriptInst::m_code_freelist

◆ m_defer_eval

WDL_Queue eelScriptInst::m_defer_eval

◆ m_eval_cache

WDL_TypedBuf<evalCacheEnt> eelScriptInst::m_eval_cache

◆ m_eval_depth

int eelScriptInst::m_eval_depth

◆ m_gfx_state

eel_lice_state* eelScriptInst::m_gfx_state

◆ m_handles

FILE* eelScriptInst::m_handles[EELSCRIPT_MAX_FILE_HANDLES]

◆ m_loaded_fnlist

WDL_StringKeyedArray<bool> eelScriptInst::m_loaded_fnlist

◆ m_net_state

eel_net_state* eelScriptInst::m_net_state

◆ m_string_context

eel_string_context_state* eelScriptInst::m_string_context

◆ m_vm

NSEEL_VMCTX eelScriptInst::m_vm

The documentation for this class was generated from the following file: