Lines Matching defs:ud
318 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) {
319 void *p = lua_touserdata(L, ud);
321 if (lua_getmetatable(L, ud)) { /* does it have a metatable? */
333 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) {
334 void *p = luaL_testudata(L, ud, tname);
335 if (p == NULL) typeerror(L, ud, tname);
462 void *ud;
463 lua_Alloc allocf = lua_getallocf(L, &ud);
465 void *temp = allocf(ud, box->box, box->bsize, newsize);
642 static const char *getF (lua_State *L, void *ud, size_t *size) {
643 LoadF *lf = (LoadF *)ud;
745 static const char *getS (lua_State *L, void *ud, size_t *size) {
746 LoadS *ls = (LoadS *)ud;
1008 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
1009 (void)ud; (void)osize; /* not used */