Home | History | Annotate | Download | only in src

Lines Matching defs:narg

179 static int docall (lua_State *L, int narg, int nres) {
181 int base = lua_gettop(L) - narg; /* function index */
186 status = lua_pcall(L, narg, nres, base);
200 int narg;
204 narg = argc - (n + 1); /* number of arguments to the script */
205 luaL_checkstack(L, narg + 3, "too many arguments to script");
208 lua_createtable(L, narg, n + 1);
213 return narg;
336 int narg = getargs(L, argv, n); /* collect arguments */
342 lua_insert(L, -(narg+1));
344 status = docall(L, narg, LUA_MULTRET);
346 lua_pop(L, narg);