2013-07-16 11:28:28 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <lua.h>
|
|
|
|
#include <lualib.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
|
|
|
|
// filled on the python side with .format()
|
|
|
|
{additional_lua_test_header}
|
|
|
|
|
2013-11-23 14:15:24 +00:00
|
|
|
static void test_lua(void) {{
|
2013-07-16 11:28:28 +00:00
|
|
|
lua_State *L = luaL_newstate();
|
|
|
|
lua_pushstring(L, "test");
|
|
|
|
lua_setglobal(L, "test");
|
|
|
|
}}
|
|
|
|
|
2013-11-23 14:15:24 +00:00
|
|
|
static void test_other(void) {{
|
2013-07-16 11:28:28 +00:00
|
|
|
// filled on the python side with .format()
|
|
|
|
{additional_lua_test_code}
|
|
|
|
}}
|
|
|
|
|
|
|
|
int main(void) {{
|
|
|
|
test_lua();
|
|
|
|
test_other();
|
|
|
|
return 0;
|
|
|
|
}}
|