local o = obj.new("large chest"); local cobj = o:contents(); */
| 94 | /* local o = obj.new("large chest"); |
| 95 | local cobj = o:contents(); */ |
| 96 | staticfn int |
| 97 | l_obj_getcontents(lua_State *L) |
| 98 | { |
| 99 | struct _lua_obj *lo = l_obj_check(L, 1); |
| 100 | struct obj *obj = lo->obj; |
| 101 | |
| 102 | if (!obj) |
| 103 | nhl_error(L, "l_obj_getcontents: no obj"); |
| 104 | |
| 105 | (void) l_obj_push(L, obj->cobj); |
| 106 | return 1; |
| 107 | } |
| 108 | |
| 109 | /* Puts object inside another object. */ |
| 110 | /* local box = obj.new("large chest"); |
nothing calls this directly
no test coverage detected