Skip to content

Commit

Permalink
slighlty more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-singer committed Aug 27, 2024
1 parent 308ceaa commit d2c3e47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,20 @@ CHEETAH_INTERNAL unsigned int debug_level = 0;
static size_t alert_log_size = 0, alert_log_offset = 0;
static char *alert_log = NULL;

/**
* Represents a usable alert level with a human-readable
* <code>name<\code> and the corresponding
* <code>mask_value<\code> used by the runtime.
**/
typedef struct __alert_level_t {
const char *name;
int mask_value;
} alert_level_t;

/**
* A table relating a human-readable alert level name to
* the corresponding bitfield value used by the runtime.
**/
static const alert_level_t alert_table[] = {
{"none", ALERT_NONE},
{"fiber", ALERT_FIBER},
Expand Down

0 comments on commit d2c3e47

Please sign in to comment.