Lines Matching refs:nup
914 const luaL_Reg *l, int nup) { in luaL_openlib() argument
918 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ in luaL_openlib()
921 luaL_setfuncs(L, l, nup); in luaL_openlib()
923 lua_pop(L, nup); /* remove upvalues */ in luaL_openlib()
934 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { in luaL_setfuncs() argument
935 luaL_checkstack(L, nup, "too many upvalues"); in luaL_setfuncs()
938 for (i = 0; i < nup; i++) /* copy upvalues to the top */ in luaL_setfuncs()
939 lua_pushvalue(L, -nup); in luaL_setfuncs()
940 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ in luaL_setfuncs()
941 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs()
943 lua_pop(L, nup); /* remove upvalues */ in luaL_setfuncs()