mirror of https://github.com/bjornbytes/lovr.git
lovr._version;
This commit is contained in:
parent
0def0d962c
commit
f13cbbc4ba
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue