blob: 5f190a249c81164f7a0e94b2469cca5a910894a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __LLS_H
#define __LLS_H
typedef struct
{
int top;
} lls_Context;
lls_Context* lls_newcontext();
typedef int (*lls_Function)();
int lls_bindfunction(lls_Context* C, const char* fname, lls_Function 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
|