diff options
author | chai <chaifix@163.com> | 2018-07-29 21:30:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-29 21:30:03 +0800 |
commit | 7ac86950d3a89a996974e8406ee88e8f5f44187d (patch) | |
tree | a173ac2e585fa99863ef74fc7d2f7b38f9db7164 /src/lua/luaopen_jin.cpp | |
parent | f94264fa4ba347fc362b4ae2deea5a12ff95f5af (diff) |
*update
Diffstat (limited to 'src/lua/luaopen_jin.cpp')
-rw-r--r-- | src/lua/luaopen_jin.cpp | 7 |
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} |