bool Frame::total_order () const { std::set<symbol> all; entries (all); int non_logs = all.size (); for (std::set<symbol>::const_iterator i = all.begin (); i != all.end (); i++) { const symbol key = *i; if (is_log (key)) non_logs--; } daisy_assert (non_logs >= 0); return non_logs == order ().size (); }
static int log_is_error(lua_State *L) { return is_log(L, LOG_PRIORITY_ERROR); }
static int log_is_warn(lua_State *L) { return is_log(L, LOG_PRIORITY_WARN); }
static int log_is_info(lua_State *L) { return is_log(L, LOG_PRIORITY_INFO); }
static int log_is_debug(lua_State *L) { return is_log(L, LOG_PRIORITY_DEBUG); }