1 #ifndef LUASCRIPT_H 2 #define LUASCRIPT_H 3 4 #include "lua.h" 5 6 extern lua_State* L; 7 extern lua_State* Lt; 8 9 #define SET_STR_FIELD( KEY, VAL ) \ 10 lua_pushstring( L, VAL ); \ 11 lua_setfield( L, -2, KEY ) 12 13 #define SET_INT_FIELD( KEY, VAL ) \ 14 lua_pushnumber( L, VAL ); \ 15 lua_setfield( L, -2, KEY ) 16 17 #define SET_BOOL_FIELD( KEY, VAL ) \ 18 lua_pushboolean( L, VAL ); \ 19 lua_setfield( L, -2, KEY ) 20 21 #include "script_api.h" 22 23 #endif