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

Method DEFINE_VMETHOD_INTERPOSE

plugins/overlay.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 typedef T interpose_base;
79
80 DEFINE_VMETHOD_INTERPOSE(void, logic, ()) {
81 INTERPOSE_NEXT(logic)();
82 overlay_interpose_lua("update_viewscreen_widgets", 2, 0,
83 [&](lua_State *L) {
84 Lua::Push(L, T::_identity.getName());
85 Lua::Push(L, this);
86 });
87 }
88 DEFINE_VMETHOD_INTERPOSE(void, feed, (std::set<df::interface_key> *input)) {
89 bool input_is_handled = false;
90 // don't send input to the overlays if there is a modal dialog up

Callers

nothing calls this directly

Calls 5

overlay_interpose_luaFunction · 0.85
PushFunction · 0.85
lua_tobooleanFunction · 0.85
getNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected