diff options
Diffstat (limited to 'waftools/fragments/lua.c')
-rw-r--r-- | waftools/fragments/lua.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/waftools/fragments/lua.c b/waftools/fragments/lua.c new file mode 100644 index 0000000000..43d678b476 --- /dev/null +++ b/waftools/fragments/lua.c @@ -0,0 +1,24 @@ +#include <stdlib.h> +#include <lua.h> +#include <lualib.h> +#include <lauxlib.h> + +// filled on the python side with .format() +{additional_lua_test_header} + +void test_lua(void) {{ + lua_State *L = luaL_newstate(); + lua_pushstring(L, "test"); + lua_setglobal(L, "test"); +}} + +void test_other(void) {{ + // filled on the python side with .format() + {additional_lua_test_code} +}} + +int main(void) {{ + test_lua(); + test_other(); + return 0; +}} |