Skip to content

Instantly share code, notes, and snippets.

@haileys
Created December 26, 2013 08:25
Show Gist options
  • Save haileys/8131240 to your computer and use it in GitHub Desktop.
Save haileys/8131240 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
#include <luajit-2.0/lua.h>
#include <luajit-2.0/lauxlib.h>
int
main()
{
lua_State* L = lua_open();
if(!L) {
fprintf(stderr, "cannot create lua state\n");
exit(1);
}
lua_close(L);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment