diff -r 9159bd51525f -r 81dbeb5bc38e src/nexus_lua.h --- a/src/nexus_lua.h Sun Apr 12 18:56:51 2009 +0300 +++ b/src/nexus_lua.h Sun Apr 12 20:37:57 2009 +0300 @@ -34,11 +34,19 @@ void nexus_lua_destroy (struct nexus_lua *lua); /** + * Parse and execute the given lua chunk in the nexus's lua context. + * + * This operation is equally valid for both textual and binary chunks, but this is intended for textual chunks, and + * hence accepts a NUL-terminated string. + */ +err_t nexus_lua_eval (struct nexus_lua *lua, const char *chunk, struct error_info *err); + +/** * Handle a Lua error by converting the given error code into a ERR_LUA_* code, inspecting the error object at * the top of the stack. * * Please note that the resulting error_info points into strings inside the lua stack - once you pop the error, the - * error_info might not be valid anymore. + * error_info might not be valid anymore after the next GC cycle. */ err_t nexus_lua_error (lua_State *L, int ret, struct error_info *err);