equal
deleted
inserted
replaced
101 { "set_consolecolor", Lset_consolecolor }, |
101 { "set_consolecolor", Lset_consolecolor }, |
102 { NULL, NULL } |
102 { NULL, NULL } |
103 }; |
103 }; |
104 |
104 |
105 LUALIB_API int luaopen_util_windows(lua_State* L) { |
105 LUALIB_API int luaopen_util_windows(lua_State* L) { |
|
106 #if (LUA_VERSION_NUM > 501) |
|
107 luaL_checkversion(L); |
|
108 #endif |
106 lua_newtable(L); |
109 lua_newtable(L); |
107 luaL_setfuncs(L, Reg, 0); |
110 luaL_setfuncs(L, Reg, 0); |
108 lua_pushliteral(L, "-3.14"); |
111 lua_pushliteral(L, "-3.14"); |
109 lua_setfield(L, -2, "version"); |
112 lua_setfield(L, -2, "version"); |
110 return 1; |
113 return 1; |