blob: 71570707b6e0fac62849d5de443e5afc3bd12f40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef __LLS_H
#define __LLS_H
typedef int(*lls_Func)();
typedef struct
{
const char* name;
lls_Func func;
} lls_FuncMap;
typedef struct
{
int top;
lls_FuncMap* funcMap;
} lls_Context;
lls_Context* lls_newcontext();
int lls_bindfunction(lls_Context* C, const char* fname, lls_Func func);
int lls_bindvariable(lls_Context* C, const char* vname, void* variable);
int lls_bindset();
int lls_executefile(lls_Context* C, const char* file);
int lls_executesource(lls_Context* C, const void* buffer, int size);
#endif
|