void *get_new_obj_set(int size, int id) { void *obj; int i; obj = get_new_obj(size, id); i = -1; while (++i < size) ((char *)(obj))[i] = 0; return (obj); }
static int l_obj_children(lua_State* L) { struct obj* self = get_self(L); struct obj* children = self->children; return children ? get_new_obj(L, children) : 0; }
static int l_obj_next(lua_State* L) { struct obj* self = get_self(L); struct obj* next = self->next; return next ? get_new_obj(L, next) : 0; }