util-src/windows.c
changeset 7821 54669df178c2
parent 6792 6b180e77c97a
child 7892 b8d694646597
equal deleted inserted replaced
7819:2624f4ee34a2 7821:54669df178c2
   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;