From 6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 16 Aug 2006 23:48:22 +0000 Subject: Finished the Configuration class (Still missing vector though!) Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places. --- lib/liblua_wrapper.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/liblua_wrapper.h') 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); -- cgit v1.2.3