Lines Matching refs:narg
96 static int docall (lua_State *L, int narg, int clear) { in docall() argument
98 int base = lua_gettop(L) - narg; /* function index */ in docall()
102 status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base); in docall()
117 int narg; in getargs() local
121 narg = argc - (n + 1); /* number of arguments to the script */ in getargs()
122 luaL_checkstack(L, narg + 3, "too many arguments to script"); in getargs()
125 lua_createtable(L, narg, n + 1); in getargs()
130 return narg; in getargs()
242 int narg = getargs(L, argv, n); /* collect arguments */ in handle_script() local
248 lua_insert(L, -(narg+1)); in handle_script()
250 status = docall(L, narg, 0); in handle_script()
252 lua_pop(L, narg); in handle_script()