mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 08:14:13 +00:00
break all the api in the swig stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8225 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6e8cd63956
commit
8f5a873dc7
11 files changed
+1030
-315
No files matched your search
@@ -140,7 +140,15 @@ static void lua_parse_and_execute(lua_State *L, char *input_code)
|
||||
}
|
||||
}
|
||||
if (!error) {
|
||||
error = luaL_loadfile(L, input_code) || docall(L, 0, 1);
|
||||
char *file = input_code, *fdup = NULL;
|
||||
|
||||
if (!switch_is_file_path(file)) {
|
||||
fdup = switch_mprintf("%s/%s", SWITCH_GLOBAL_dirs.script_dir, file);
|
||||
switch_assert(fdup);
|
||||
file = fdup;
|
||||
}
|
||||
error = luaL_loadfile(L, file) || docall(L, 0, 1);
|
||||
switch_safe_free(fdup);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user