lang stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9062 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-07-16 20:19:11 +00:00
parent f2e5d07e0b
commit 920ef82cb3
10 changed files with 426 additions and 39 deletions
+6 -7
View File
@@ -50,13 +50,12 @@ bool Session::end_allow_threads()
void Session::setLUA(lua_State * state)
{
if (uuid) {
L = state;
lua_setglobal(L, uuid);
lua_getfield(L, LUA_GLOBALSINDEX, uuid);
} else {
//did we fail to make a session?
}
sanity_check_noreturn;
L = state;
lua_setglobal(L, uuid);
lua_getfield(L, LUA_GLOBALSINDEX, uuid ? uuid : "");
}
lua_State *Session::getLUA()