Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always exposing debug library - I need it for traceback, so let's inc…

…lude it in release builds, too.
  • Loading branch information...
commit 75379b4e050dbb13c78b7defd2c52169d79da245 1 parent b20a6be
@mrwonko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/jarlib/src/jar/core/CoreImpl.cpp
View
2  code/jarlib/src/jar/core/CoreImpl.cpp
@@ -57,13 +57,13 @@ const bool CoreImpl::Init(int argc, char** argv, const std::string& rootPath)
Deinit();
return false;
}
-#ifdef DEBUG
if(!mLua->OpenDebugLibrary())
{
Logger::GetDefaultLogger().Error("Could not open Lua debug library: "+mLua->GetLastError());
Deinit();
return false;
}
+#ifdef DEBUG
luabind::globals(mLua->GetState())["DEBUG"] = true;
#endif
Logger::GetDefaultLogger().Info("Initialized Lua", 1);
Please sign in to comment.
Something went wrong with that request. Please try again.