summaryrefslogtreecommitdiff
path: root/lls/lls.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-31 23:23:28 +0800
committerchai <chaifix@163.com>2018-05-31 23:23:28 +0800
commita558be5f3d72775bd06c3814e002d355402a7acd (patch)
tree74f12a0f9043d7690024afad04ddff5c200cc614 /lls/lls.h
*init
Diffstat (limited to 'lls/lls.h')
-rw-r--r--lls/lls.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lls/lls.h b/lls/lls.h
new file mode 100644
index 0000000..5f190a2
--- /dev/null
+++ b/lls/lls.h
@@ -0,0 +1,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 \ No newline at end of file