// the dump. It is only included when its specified category is enabled at a trace level greater than or equal to
// the one in <flag>. Categories are case sensitive.
static inline void lwt_trace (const char *flag, const char *format, size_t value1, size_t value2) {
- extern uint64_t flag_mask_;
- if (EXPECT_FALSE(flag_mask_ & (1 << (flag[0] - 'A')))) {
+ extern char flag_state_[256];
+ if (EXPECT_FALSE(flag_state_[(unsigned)flag[0]] >= flag[1])) {
// embed <flags> in <format> so we don't have to make the lwt_record_t any bigger than it already is
format = (const char *)((size_t)format | ((uint64_t)flag[0] << 56) | ((uint64_t)flag[1] << 48));
extern void lwt_trace_i (const char *format, size_t value1, size_t value2);
}
}
+void lwt_halt (void);
+
#endif//LWT_H