diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-20 23:16:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 23:16:29 +0200 |
| commit | bb4fd73c317cc88beb5e58c1abf52138abed107f (patch) | |
| tree | 35b774efc97d820a908424a5bc2452e0d6bf12a8 /src | |
| parent | c1a64c1b75f97cef97965b3bd9a941564a6270bd (diff) | |
| download | luasystem-0.4.0.tar.gz luasystem-0.4.0.tar.bz2 luasystem-0.4.0.zip | |
Release v0.4.0 (#24)v0.4.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -4,7 +4,7 @@ | |||
| 4 | #include <lua.h> | 4 | #include <lua.h> |
| 5 | #include <lauxlib.h> | 5 | #include <lauxlib.h> |
| 6 | 6 | ||
| 7 | #define LUASYSTEM_VERSION "LuaSystem 0.3.0" | 7 | #define LUASYSTEM_VERSION "LuaSystem 0.4.0" |
| 8 | 8 | ||
| 9 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 10 | #define LUAEXPORT __declspec(dllexport) | 10 | #define LUAEXPORT __declspec(dllexport) |
| @@ -26,6 +26,9 @@ LUAEXPORT int luaopen_system_core(lua_State *L) { | |||
| 26 | lua_pushstring(L, "_VERSION"); | 26 | lua_pushstring(L, "_VERSION"); |
| 27 | lua_pushstring(L, LUASYSTEM_VERSION); | 27 | lua_pushstring(L, LUASYSTEM_VERSION); |
| 28 | lua_rawset(L, -3); | 28 | lua_rawset(L, -3); |
| 29 | |||
| 30 | /// Flag to identify Windows. | ||
| 31 | // @field windows `true` if on Windows, `false` otherwise. | ||
| 29 | lua_pushstring(L, "windows"); | 32 | lua_pushstring(L, "windows"); |
| 30 | #ifdef _WIN32 | 33 | #ifdef _WIN32 |
| 31 | lua_pushboolean(L, 1); | 34 | lua_pushboolean(L, 1); |
