summaryrefslogtreecommitdiff
path: root/lib/liblua_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/liblua_wrapper.h')
-rw-r--r--lib/liblua_wrapper.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/liblua_wrapper.h b/lib/liblua_wrapper.h
index fed15c1..70eb8a8 100644
--- a/lib/liblua_wrapper.h
+++ b/lib/liblua_wrapper.h
@@ -37,11 +37,18 @@ public:
~LibLUAWrapper();
/**
- * loadFile reads and parses a lue file.
+ * loadFile reads, parses and runs a lue file.
* @return 0 on success 1 on error
*/
int loadFile(char *fname);
+ /**
+ * loadBuffer parses a buffer containing lue code,
+ * pushes it on the stack, and runs it
+ * @return 0 on success 1 on error
+ */
+ int loadBuffer(char *buffer);
+
double getReal(char *name);
int getInteger(char *name);
bool getBoolean(char *name);