aboutsummaryrefslogtreecommitdiff
path: root/src/lua/luaopen_jin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/luaopen_jin.cpp')
-rw-r--r--src/lua/luaopen_jin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/luaopen_jin.cpp b/src/lua/luaopen_jin.cpp
index 6fbac77..1d95ebf 100644
--- a/src/lua/luaopen_jin.cpp
+++ b/src/lua/luaopen_jin.cpp
@@ -40,10 +40,17 @@ namespace lua
luax_pushstring(L, "macos");
#endif
return 1;
+ }
+
+ static int l_revision(lua_State* L)
+ {
+ luax_pushnumber(L, REVISION);
+ return 1;
}
static const luaL_Reg f[] = {
{"version", l_getversion},
+ {"revision", l_revision},
{"author", l_getAuthor},
{"os", l_getOS},
{0, 0}