MCPcopy Create free account
hub / github.com/DFHack/dfhack / invoke_assign

Function invoke_assign

library/LuaTypes.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static 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
89void constructed_identity::lua_write(lua_State *state, int fname_idx, void *ptr, int val_index) const
90{

Callers 1

lua_writeMethod · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected