lovr._version;

This commit is contained in:
bjorn 2016-11-29 01:33:53 -08:00
parent 0def0d962c
commit f13cbbc4ba
2 changed files with 5 additions and 1 deletions

View File

@ -42,8 +42,10 @@ void lovrInit(lua_State* L, int argc, char** argv) {
lua_setglobal(L, "arg");
// lovr = {}
// lovr
lua_newtable(L);
lua_pushstring(L, LOVR_VERSION);
lua_setfield(L, -2, "_version");
lua_setglobal(L, "lovr");
// Preload modules

View File

@ -2,6 +2,8 @@
#include <lauxlib.h>
#include <lualib.h>
#define LOVR_VERSION "0.1.0"
void lovrInit(lua_State* L, int argc, char** argv);
void lovrDestroy(int exitCode);
void lovrRun(lua_State* L);