SWORD25: Moved the Lua library into it's own namespace
Previously with some of the files I was leaving the #include references to the library inside the global namespace. However, since the engine itself is now inside a namespace, I had to do a lot of changes, such as lua_State to ::lua_State. This way is cleaner, and I just need to add a 'using namespace Lua' where needed. svn-id: r53198
This commit is contained in:
parent
53a9d2d0a1
commit
2006e564a1
11 changed files with 111 additions and 104 deletions
|
@ -43,7 +43,7 @@
|
|||
|
||||
namespace Sword25 {
|
||||
|
||||
static int Warning(::lua_State *L) {
|
||||
static int Warning(lua_State *L) {
|
||||
#ifdef DEBUG
|
||||
int __startStackDepth = lua_gettop(L);
|
||||
#endif
|
||||
|
@ -73,7 +73,7 @@ static const luaL_reg GLOBAL_FUNCTIONS[] = {
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
bool BS_LuaScriptEngine::RegisterStandardLibExtensions() {
|
||||
::lua_State *L = m_State;
|
||||
lua_State *L = m_State;
|
||||
BS_ASSERT(m_State);
|
||||
|
||||
if (!BS_LuaBindhelper::AddFunctionsToLib(L, "", GLOBAL_FUNCTIONS)) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue