| 79 | } |
| 80 | |
| 81 | static void invoke_assign(lua_State *state, const type_identity *id, void *ptr, int val_index) |
| 82 | { |
| 83 | lua_getfield(state, LUA_REGISTRYINDEX, DFHACK_ASSIGN_NAME); |
| 84 | push_object_internal(state, id, ptr); |
| 85 | lua_pushvalue(state, val_index); |
| 86 | lua_call(state, 2, 0); |
| 87 | } |
| 88 | |
| 89 | void constructed_identity::lua_write(lua_State *state, int fname_idx, void *ptr, int val_index) const |
| 90 | { |
no test coverage detected