returns true if we could interface with lua and could verify that the given phase is a meta phase
| 1407 | // returns true if we could interface with lua and could verify that the given |
| 1408 | // phase is a meta phase |
| 1409 | static bool is_meta_phase(color_ostream &out, |
| 1410 | blueprint_options opts, // copy because we can't const |
| 1411 | const string &phase) { |
| 1412 | bool ret = false; |
| 1413 | if (!Lua::CallLuaModuleFunction(out, "plugins.blueprint", "is_meta_phase", |
| 1414 | std::make_tuple(&opts, phase), 1, [&](lua_State *L){ret = lua_toboolean(L, -1);})) |
| 1415 | return false; |
| 1416 | return ret; |
| 1417 | } |
| 1418 | |
| 1419 | static void write_minimal(ofstream &ofile, const blueprint_options &opts, |
| 1420 | const bp_volume &mapdata) { |
no test coverage detected