diff options
author | Oscar Lim <olim@ucla.edu> | 2016-02-11 00:08:22 -0800 |
---|---|---|
committer | Oscar Lim <olim@ucla.edu> | 2016-02-11 00:45:50 -0800 |
commit | 43d16e123da847a371f8fafb1b795ba9405127cf (patch) | |
tree | 821f7bc43778cc0a13d5424e6aaab8a8937b889a /src | |
parent | 7499b422e3f07bf25704cbf7989e845f89697fa8 (diff) | |
download | luasystem-0.1.0.tar.gz luasystem-0.1.0.tar.bz2 luasystem-0.1.0.zip |
Release v0.1.0v0.1.0
Diffstat (limited to '')
-rw-r--r-- | src/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,6 +1,8 @@ | |||
1 | #include <lua.h> | 1 | #include <lua.h> |
2 | #include <lauxlib.h> | 2 | #include <lauxlib.h> |
3 | 3 | ||
4 | #define LUASYSTEM_VERSION "LuaSystem 0.1.0" | ||
5 | |||
4 | #ifdef _WIN32 | 6 | #ifdef _WIN32 |
5 | #define LUAEXPORT __declspec(dllexport) | 7 | #define LUAEXPORT __declspec(dllexport) |
6 | #else | 8 | #else |
@@ -14,6 +16,9 @@ void time_open(lua_State *L); | |||
14 | *-------------------------------------------------------------------------*/ | 16 | *-------------------------------------------------------------------------*/ |
15 | LUAEXPORT int luaopen_system_core(lua_State *L) { | 17 | LUAEXPORT int luaopen_system_core(lua_State *L) { |
16 | lua_newtable(L); | 18 | lua_newtable(L); |
19 | lua_pushstring(L, "_VERSION"); | ||
20 | lua_pushstring(L, LUASYSTEM_VERSION); | ||
21 | lua_rawset(L, -3); | ||
17 | time_open(L); | 22 | time_open(L); |
18 | return 1; | 23 | return 1; |
19 | } | 24 | } |