LMMS
Loading...
Searching...
No Matches
eel_import.h File Reference

Go to the source code of this file.

Classes

struct  eelStringSegmentRec

Macros

#define NSEEL_ADDFUNC_DESTINATION   (&g_eel_function_table)
#define NSEEL_addfunc_retval(name, np, pproc, fptr)
#define NSEEL_addfunc_retptr(name, np, pproc, fptr)
#define NSEEL_addfunc_retbool(name, np, pproc, fptr)
#define NSEEL_addfunc_varparm(name, min_np, pproc, fptr)
#define NSEEL_addfunc_exparms(name, np, pproc, fptr)
#define __NS_EELINT_H__
#define EEL_IMPORT_ALL(IMPORT_FUNC)

Variables

void(* NSEEL_addfunc_ret_type )(const char *name, int np, int ret_type, NSEEL_PPPROC pproc, void *fptr, eel_function_table *destination)
void(* NSEEL_addfunc_varparm_ex )(const char *name, int min_np, int want_exact, NSEEL_PPPROC pproc, EEL_F(NSEEL_CGEN_CALL *fptr)(void *, INT_PTR, EEL_F **), eel_function_table *destination)
NSEEL_VMCTX(* NSEEL_VM_alloc )()
void(* NSEEL_VM_SetGRAM )(NSEEL_VMCTX, void **)
void(* NSEEL_VM_free )(NSEEL_VMCTX ctx)
void(* NSEEL_VM_SetFunctionTable )(NSEEL_VMCTX, eel_function_table *tab)
EEL_F *(* NSEEL_VM_regvar )(NSEEL_VMCTX ctx, const char *name)
void(* NSEEL_VM_SetCustomFuncThis )(NSEEL_VMCTX ctx, void *thisptr)
NSEEL_CODEHANDLE(* NSEEL_code_compile_ex )(NSEEL_VMCTX ctx, const char *code, int lineoffs, int flags)
void(* NSEEL_VM_set_var_resolver )(NSEEL_VMCTX ctx, EEL_F *(*res)(void *userctx, const char *name), void *userctx)
char *(* NSEEL_code_getcodeerror )(NSEEL_VMCTX ctx)
void(* NSEEL_code_execute )(NSEEL_CODEHANDLE code)
void(* NSEEL_code_free )(NSEEL_CODEHANDLE code)
EEL_F *(* nseel_int_register_var )(compileContext *ctx, const char *name, int isReg, const char **namePtrOut)
void(* NSEEL_VM_enumallvars )(NSEEL_VMCTX ctx, int(*func)(const char *name, EEL_F *val, void *ctx), void *userctx)
EEL_F *(* NSEEL_VM_getramptr )(NSEEL_VMCTX ctx, unsigned int offs, int *validAmt)
void **(* eel_gmem_attach )(const char *nm, bool is_alloc)
void(* eel_fft_register )(eel_function_table *)
void(* NSEEL_VM_SetStringFunc )(NSEEL_VMCTX ctx, EEL_F(*onString)(void *caller_this, struct eelStringSegmentRec *list), EEL_F(*onNamedString)(void *caller_this, const char *name))
int(* nseel_stringsegments_tobuf )(char *bufOut, int bufout_sz, struct eelStringSegmentRec *list)
void *(* NSEEL_PProc_RAM )(void *data, int data_size, struct _compileContext *ctx)
void *(* NSEEL_PProc_THIS )(void *data, int data_size, struct _compileContext *ctx)
void(* eel_enterfp )(int s[2])
void(* eel_leavefp )(int s[2])
eel_function_table g_eel_function_table

Macro Definition Documentation

◆ __NS_EELINT_H__

#define __NS_EELINT_H__

◆ EEL_IMPORT_ALL

#define EEL_IMPORT_ALL ( IMPORT_FUNC)
Value:
IMPORT_FUNC(NSEEL_addfunc_ret_type) \
IMPORT_FUNC(NSEEL_VM_free) \
IMPORT_FUNC(NSEEL_VM_regvar) \
IMPORT_FUNC(NSEEL_code_compile_ex) \
IMPORT_FUNC(NSEEL_code_execute) \
IMPORT_FUNC(NSEEL_code_free) \
IMPORT_FUNC(NSEEL_PProc_THIS) \
IMPORT_FUNC(NSEEL_PProc_RAM) \
IMPORT_FUNC(NSEEL_VM_SetStringFunc) \
IMPORT_FUNC(NSEEL_VM_enumallvars) \
IMPORT_FUNC(NSEEL_VM_getramptr) \
IMPORT_FUNC(NSEEL_VM_SetGRAM) \
IMPORT_FUNC(eel_gmem_attach) \
IMPORT_FUNC(eel_fft_register) \
IMPORT_FUNC(nseel_int_register_var) \
IMPORT_FUNC(eel_leavefp) \
IMPORT_FUNC(eel_enterfp) \
IMPORT_FUNC(NSEEL_VM_alloc) /* keep NSEEL_VM_alloc last */
EEL_F *(* NSEEL_VM_regvar)(NSEEL_VMCTX ctx, const char *name)
Definition eel_import.h:13
EEL_F *(* NSEEL_VM_getramptr)(NSEEL_VMCTX ctx, unsigned int offs, int *validAmt)
Definition eel_import.h:23
void(* NSEEL_VM_free)(NSEEL_VMCTX ctx)
Definition eel_import.h:11
void(* eel_leavefp)(int s[2])
Definition eel_import.h:43
void(* NSEEL_VM_SetGRAM)(NSEEL_VMCTX, void **)
Definition eel_import.h:10
void(* NSEEL_VM_set_var_resolver)(NSEEL_VMCTX ctx, EEL_F *(*res)(void *userctx, const char *name), void *userctx)
Definition eel_import.h:17
NSEEL_CODEHANDLE(* NSEEL_code_compile_ex)(NSEEL_VMCTX ctx, const char *code, int lineoffs, int flags)
Definition eel_import.h:16
void(* NSEEL_VM_SetStringFunc)(NSEEL_VMCTX ctx, EEL_F(*onString)(void *caller_this, struct eelStringSegmentRec *list), EEL_F(*onNamedString)(void *caller_this, const char *name))
Definition eel_import.h:32
void(* NSEEL_code_free)(NSEEL_CODEHANDLE code)
Definition eel_import.h:20
void(* NSEEL_code_execute)(NSEEL_CODEHANDLE code)
Definition eel_import.h:19
EEL_F *(* nseel_int_register_var)(compileContext *ctx, const char *name, int isReg, const char **namePtrOut)
Definition eel_import.h:21
void **(* eel_gmem_attach)(const char *nm, bool is_alloc)
Definition eel_import.h:24
int(* nseel_stringsegments_tobuf)(char *bufOut, int bufout_sz, struct eelStringSegmentRec *list)
Definition eel_import.h:37
void(* eel_enterfp)(int s[2])
Definition eel_import.h:42
void(* NSEEL_VM_enumallvars)(NSEEL_VMCTX ctx, int(*func)(const char *name, EEL_F *val, void *ctx), void *userctx)
Definition eel_import.h:22
NSEEL_VMCTX(* NSEEL_VM_alloc)()
Definition eel_import.h:9
char *(* NSEEL_code_getcodeerror)(NSEEL_VMCTX ctx)
Definition eel_import.h:18
void *(* NSEEL_PProc_RAM)(void *data, int data_size, struct _compileContext *ctx)
Definition eel_import.h:39
void(* NSEEL_addfunc_ret_type)(const char *name, int np, int ret_type, NSEEL_PPPROC pproc, void *fptr, eel_function_table *destination)
Definition eel_import.h:5
void(* eel_fft_register)(eel_function_table *)
Definition eel_import.h:25
void *(* NSEEL_PProc_THIS)(void *data, int data_size, struct _compileContext *ctx)
Definition eel_import.h:40
void(* NSEEL_addfunc_varparm_ex)(const char *name, int min_np, int want_exact, NSEEL_PPPROC pproc, EEL_F(NSEEL_CGEN_CALL *fptr)(void *, INT_PTR, EEL_F **), eel_function_table *destination)
Definition eel_import.h:6
void(* NSEEL_VM_SetFunctionTable)(NSEEL_VMCTX, eel_function_table *tab)
Definition eel_import.h:12
void(* NSEEL_VM_SetCustomFuncThis)(NSEEL_VMCTX ctx, void *thisptr)
Definition eel_import.h:15

◆ NSEEL_ADDFUNC_DESTINATION

#define NSEEL_ADDFUNC_DESTINATION   (&g_eel_function_table)

◆ NSEEL_addfunc_exparms

#define NSEEL_addfunc_exparms ( name,
np,
pproc,
fptr )
Value:
#define NSEEL_ADDFUNC_DESTINATION
Definition eel_import.h:47
static const char * name
Definition pugl.h:1582

◆ NSEEL_addfunc_retbool

#define NSEEL_addfunc_retbool ( name,
np,
pproc,
fptr )
Value:

◆ NSEEL_addfunc_retptr

#define NSEEL_addfunc_retptr ( name,
np,
pproc,
fptr )
Value:

◆ NSEEL_addfunc_retval

#define NSEEL_addfunc_retval ( name,
np,
pproc,
fptr )
Value:

◆ NSEEL_addfunc_varparm

#define NSEEL_addfunc_varparm ( name,
min_np,
pproc,
fptr )

Variable Documentation

◆ eel_enterfp

void(* eel_enterfp) (int s[2]) ( int s[2])

◆ eel_fft_register

void(* eel_fft_register) (eel_function_table *) ( eel_function_table * )

◆ eel_gmem_attach

void **(* eel_gmem_attach) (const char *nm, bool is_alloc) ( const char * nm,
bool is_alloc )

◆ eel_leavefp

void(* eel_leavefp) (int s[2]) ( int s[2])

◆ g_eel_function_table

eel_function_table g_eel_function_table

◆ NSEEL_addfunc_ret_type

void(* NSEEL_addfunc_ret_type) (const char *name, int np, int ret_type, NSEEL_PPPROC pproc, void *fptr, eel_function_table *destination) ( const char * name,
int np,
int ret_type,
NSEEL_PPPROC pproc,
void * fptr,
eel_function_table * destination )

◆ NSEEL_addfunc_varparm_ex

void(* NSEEL_addfunc_varparm_ex) (const char *name, int min_np, int want_exact, NSEEL_PPPROC pproc, EEL_F(NSEEL_CGEN_CALL *fptr)(void *, INT_PTR, EEL_F **), eel_function_table *destination) ( const char * name,
int min_np,
int want_exact,
NSEEL_PPPROC pproc,
EEL_F(NSEEL_CGEN_CALL *fptr)(void *, INT_PTR, EEL_F **) ,
eel_function_table * destination )

◆ NSEEL_code_compile_ex

NSEEL_CODEHANDLE(* NSEEL_code_compile_ex) (NSEEL_VMCTX ctx, const char *code, int lineoffs, int flags) ( NSEEL_VMCTX ctx,
const char * code,
int lineoffs,
int flags )

◆ NSEEL_code_execute

void(* NSEEL_code_execute) (NSEEL_CODEHANDLE code) ( NSEEL_CODEHANDLE code)

◆ NSEEL_code_free

void(* NSEEL_code_free) (NSEEL_CODEHANDLE code) ( NSEEL_CODEHANDLE code)

◆ NSEEL_code_getcodeerror

char *(* NSEEL_code_getcodeerror) (NSEEL_VMCTX ctx) ( NSEEL_VMCTX ctx)

◆ nseel_int_register_var

EEL_F *(* nseel_int_register_var) (compileContext *ctx, const char *name, int isReg, const char **namePtrOut) ( compileContext * ctx,
const char * name,
int isReg,
const char ** namePtrOut )

◆ NSEEL_PProc_RAM

void *(* NSEEL_PProc_RAM) (void *data, int data_size, struct _compileContext *ctx) ( void * data,
int data_size,
struct _compileContext * ctx )

◆ NSEEL_PProc_THIS

void *(* NSEEL_PProc_THIS) (void *data, int data_size, struct _compileContext *ctx) ( void * data,
int data_size,
struct _compileContext * ctx )

◆ nseel_stringsegments_tobuf

int(* nseel_stringsegments_tobuf) (char *bufOut, int bufout_sz, struct eelStringSegmentRec *list) ( char * bufOut,
int bufout_sz,
struct eelStringSegmentRec * list )

◆ NSEEL_VM_alloc

NSEEL_VMCTX(* NSEEL_VM_alloc) () ( )

◆ NSEEL_VM_enumallvars

void(* NSEEL_VM_enumallvars) (NSEEL_VMCTX ctx, int(*func)(const char *name, EEL_F *val, void *ctx), void *userctx) ( NSEEL_VMCTX ctx,
int(* func )(const char *name, EEL_F *val, void *ctx),
void * userctx )

◆ NSEEL_VM_free

void(* NSEEL_VM_free) (NSEEL_VMCTX ctx) ( NSEEL_VMCTX ctx)

◆ NSEEL_VM_getramptr

EEL_F *(* NSEEL_VM_getramptr) (NSEEL_VMCTX ctx, unsigned int offs, int *validAmt) ( NSEEL_VMCTX ctx,
unsigned int offs,
int * validAmt )

◆ NSEEL_VM_regvar

EEL_F *(* NSEEL_VM_regvar) (NSEEL_VMCTX ctx, const char *name) ( NSEEL_VMCTX ctx,
const char * name )

◆ NSEEL_VM_set_var_resolver

void(* NSEEL_VM_set_var_resolver) (NSEEL_VMCTX ctx, EEL_F *(*res)(void *userctx, const char *name), void *userctx) ( NSEEL_VMCTX ctx,
EEL_F *(* res )(void *userctx, const char *name),
void * userctx )

◆ NSEEL_VM_SetCustomFuncThis

void(* NSEEL_VM_SetCustomFuncThis) (NSEEL_VMCTX ctx, void *thisptr) ( NSEEL_VMCTX ctx,
void * thisptr )

◆ NSEEL_VM_SetFunctionTable

void(* NSEEL_VM_SetFunctionTable) (NSEEL_VMCTX, eel_function_table *tab) ( NSEEL_VMCTX ,
eel_function_table * tab )

◆ NSEEL_VM_SetGRAM

void(* NSEEL_VM_SetGRAM) (NSEEL_VMCTX, void **) ( NSEEL_VMCTX ctx,
void ** gram )

◆ NSEEL_VM_SetStringFunc

void(* NSEEL_VM_SetStringFunc) (NSEEL_VMCTX ctx, EEL_F(*onString)(void *caller_this, struct eelStringSegmentRec *list), EEL_F(*onNamedString)(void *caller_this, const char *name)) ( NSEEL_VMCTX ctx,
EEL_F(* onString )(void *caller_this, struct eelStringSegmentRec *list),
EEL_F(* onNamedString )(void *caller_this, const char *name) )