Skip to content

Instantly share code, notes, and snippets.

@markuman
Last active August 29, 2015 14:06
Show Gist options
  • Save markuman/d387f9c59f7a8bdf133e to your computer and use it in GitHub Desktop.
Save markuman/d387f9c59f7a8bdf133e to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
main(int argc, char *argv[]) {
lua_State *L = luaL_newstate();
luaL_openlibs(L);
return luaL_dofile(L, argv[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment