Lines Matching refs:top
44 ** return 1 + string at top if find a good name.
74 int top = lua_gettop(L);
77 if (findfield(L, top + 1, 2)) {
83 lua_copy(L, -1, top + 1); /* move name to proper place */
88 lua_settop(L, top); /* remove function and global table */
128 int top = lua_gettop(L);
149 lua_concat(L, lua_gettop(L) - top);
152 lua_concat(L, lua_gettop(L) - top);
301 return 0; /* leave previous value on top, but return 0 */
930 ** set functions from list 'l' into table at top - 'nup'; each
931 ** function gets the 'nup' elements at the top as upvalues.
938 for (i = 0; i < nup; i++) /* copy upvalues to the top */
958 lua_pushvalue(L, -1); /* copy to be left at top */
969 ** Leaves resulting module on the top.