Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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, 0, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement