summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-06-20 23:16:29 +0200
committerGitHub <noreply@github.com>2024-06-20 23:16:29 +0200
commitbb4fd73c317cc88beb5e58c1abf52138abed107f (patch)
tree35b774efc97d820a908424a5bc2452e0d6bf12a8 /src
parentc1a64c1b75f97cef97965b3bd9a941564a6270bd (diff)
downloadluasystem-bb4fd73c317cc88beb5e58c1abf52138abed107f.zip
Release v0.4.0 (#24)v0.4.0
Diffstat (limited to 'src')
-rw-r--r--src/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index d233ecc..24764c5 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4,7 +4,7 @@
#include <lua.h>
#include <lauxlib.h>
-#define LUASYSTEM_VERSION "LuaSystem 0.3.0"
+#define LUASYSTEM_VERSION "LuaSystem 0.4.0"
#ifdef _WIN32
#define LUAEXPORT __declspec(dllexport)
@@ -26,6 +26,9 @@ LUAEXPORT int luaopen_system_core(lua_State *L) {
lua_pushstring(L, "_VERSION");
lua_pushstring(L, LUASYSTEM_VERSION);
lua_rawset(L, -3);
+
+/// Flag to identify Windows.
+// @field windows `true` if on Windows, `false` otherwise.
lua_pushstring(L, "windows");
#ifdef _WIN32
lua_pushboolean(L, 1);