| 328 | } |
| 329 | |
| 330 | bool 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 | |
| 344 | void map_lua_marker::init() |
| 345 | { |
no test coverage detected