From 7ac86950d3a89a996974e8406ee88e8f5f44187d Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 29 Jul 2018 21:30:03 +0800 Subject: *update --- src/lua/luaopen_jin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lua/luaopen_jin.cpp') 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} -- cgit v1.1-26-g67d0