Lines Matching refs:ud
330 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) {
331 void *p = lua_touserdata(L, ud);
333 if (lua_getmetatable(L, ud)) { /* does it have a metatable? */
345 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) {
346 void *p = luaL_testudata(L, ud, tname);
347 luaL_argexpected(L, p != NULL, ud, tname);
474 void *ud;
475 lua_Alloc allocf = lua_getallocf(L, &ud);
477 void *temp = allocf(ud, box->box, box->bsize, newsize);
716 static const char *getF (lua_State *L, void *ud, size_t *size) {
717 LoadF *lf = (LoadF *)ud;
824 static const char *getS (lua_State *L, void *ud, size_t *size) {
825 LoadS *ls = (LoadS *)ud;
1017 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
1018 (void)ud; (void)osize; /* not used */
1043 static void warnfoff (void *ud, const char *message, int tocont);
1044 static void warnfon (void *ud, const char *message, int tocont);
1045 static void warnfcont (void *ud, const char *message, int tocont);
1065 static void warnfoff (void *ud, const char *message, int tocont) {
1066 checkcontrol((lua_State *)ud, message, tocont);
1074 static void warnfcont (void *ud, const char *message, int tocont) {
1075 lua_State *L = (lua_State *)ud;
1086 static void warnfon (void *ud, const char *message, int tocont) {
1087 if (checkcontrol((lua_State *)ud, message, tocont)) /* control message? */
1090 warnfcont(ud, message, tocont); /* finish processing */