Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1.             char *file = input_code, *fdup = NULL;
  2.  
  3.             if (!switch_is_file_path(file)) {
  4.                 fdup = switch_mprintf("%s/%s", SWITCH_GLOBAL_dirs.script_dir, file);
  5.                 switch_assert(fdup);
  6.                 file = fdup;
  7.             }
  8.             error = luaL_loadfile(L, file) || docall(L, 0, 0, 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement