-namespace aco {
-uint64_t debug_flags = 0;
-
-static const struct debug_control aco_debug_options[] = {
- {"validateir", DEBUG_VALIDATE},
- {"validatera", DEBUG_VALIDATE_RA},
- {"perfwarn", DEBUG_PERFWARN},
- {NULL, 0}
-};
-
-static once_flag init_once_flag = ONCE_FLAG_INIT;
-
-static void init()
-{
- debug_flags = parse_debug_string(getenv("ACO_DEBUG"), aco_debug_options);
-
- #ifndef NDEBUG
- /* enable some flags by default on debug builds */
- debug_flags |= aco::DEBUG_VALIDATE;
- #endif
-}
-}
-