Advertisement
Guest User

LUA Test, no error checking

a guest
Jul 13th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include "lua.h"
  2. #include "lualib.h"
  3. #include "lauxlib.h"
  4.  
  5. int main()
  6. {
  7.     int s=0;
  8.  
  9.     lua_State *L = lua_open();
  10.  
  11.     // load the libs
  12.     luaL_openlibs(L);
  13.  
  14.     //run a Lua scrip here
  15.     luaL_dofile(L,"foo.lua");
  16.  
  17.     lua_close(L);
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement