MCPcopy Create free account
hub / github.com/crawl/crawl / callfn

Method callfn

crawl-ref/source/mapmark.cc:330–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330bool map_lua_marker::callfn(const char *fn, bool warn_err, int args) const
331{
332 if (args == -1)
333 {
334 const int top = lua_gettop(dlua);
335 push_fn_args(fn);
336 args = lua_gettop(dlua) - top;
337 }
338 const bool res = dlua.callfn("dlua_marker_method", args, 1);
339 if (!res && warn_err)
340 mprf(MSGCH_ERROR, "mlua error: %s", dlua.error.c_str());
341 return res;
342}
343
344void map_lua_marker::init()
345{

Callers 5

map_lua_markerMethod · 0.45
writeMethod · 0.45
readMethod · 0.45
notify_dgn_eventMethod · 0.45
debug_to_stringMethod · 0.45

Calls 1

mprfFunction · 0.85

Tested by

no test coverage detected