[Orxonox-commit 1911] r6628 - code/branches/gamestate/data/lua

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Mar 28 20:54:46 CEST 2010


Author: rgrieder
Date: 2010-03-28 20:54:46 +0200 (Sun, 28 Mar 2010)
New Revision: 6628

Modified:
   code/branches/gamestate/data/lua/LuaStateInit.lua
Log:
Lua Debugger is not written for Lua 5.0. Only include it for 5.1 and above.

Modified: code/branches/gamestate/data/lua/LuaStateInit.lua
===================================================================
--- code/branches/gamestate/data/lua/LuaStateInit.lua	2010-03-28 17:45:40 UTC (rev 6627)
+++ code/branches/gamestate/data/lua/LuaStateInit.lua	2010-03-28 18:54:46 UTC (rev 6628)
@@ -69,5 +69,7 @@
   return orxonox.SettingsConfigFile:getInstance():tconfig(section, entry, value)
 end
 
--- Include command line debugger
-require("Debugger")
+-- Include command line debugger for lua 5.1
+if _VERSION ~= "Lua 5.0" then
+  require("Debugger")
+end




More information about the Orxonox-commit mailing list