mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
fix compile on gcc 4.1.2 not sure this is correct but looks like it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8230 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
471f176ade
commit
6b5aa462cd
@ -96,6 +96,8 @@ static int docall (lua_State *L, int narg, int clear) {
|
|||||||
static lua_State *lua_init(void)
|
static lua_State *lua_init(void)
|
||||||
{
|
{
|
||||||
lua_State *L = lua_open();
|
lua_State *L = lua_open();
|
||||||
|
int error = 0;
|
||||||
|
|
||||||
if (L) {
|
if (L) {
|
||||||
const char *buff = "os.exit = function() freeswitch.consoleLog(\"err\", \"Surely you jest! exiting is a bad plan....\\n\") end";
|
const char *buff = "os.exit = function() freeswitch.consoleLog(\"err\", \"Surely you jest! exiting is a bad plan....\\n\") end";
|
||||||
lua_gc(L, LUA_GCSTOP, 0);
|
lua_gc(L, LUA_GCSTOP, 0);
|
||||||
@ -103,7 +105,7 @@ static lua_State *lua_init(void)
|
|||||||
luaopen_freeswitch(L);
|
luaopen_freeswitch(L);
|
||||||
lua_gc(L, LUA_GCRESTART, 0);
|
lua_gc(L, LUA_GCRESTART, 0);
|
||||||
lua_atpanic(L, panic);
|
lua_atpanic(L, panic);
|
||||||
luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 1);
|
error = luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 1);
|
||||||
}
|
}
|
||||||
return L;
|
return L;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user