Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "lua.h"
- #include "lualib.h"
- #include "lauxlib.h"
- int main()
- {
- int s=0;
- lua_State *L = lua_open();
- // load the libs
- luaL_openlibs(L);
- //run a Lua scrip here
- luaL_dofile(L,"foo.lua");
- lua_close(L);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement