Commit 07e1aeed authored by Benoît Simonneaux's avatar Benoît Simonneaux

compiler/debug: Add debug_bool().

parent 4a2de365
......@@ -271,3 +271,14 @@ const wchar_t *debug_val_imm_type(enum bm_ast_val_imm_type type)
return L"<unknown value imm>";
const wchar_t *debug_bool(enum bm_ast_bool b)
switch (b)
case BM_AST_BOOL_FALSE: return L"false";
case BM_AST_BOOL_TRUE: return L"true";
return L"<unknown bool>";
......@@ -30,5 +30,6 @@ extern const wchar_t *debug_node_type(enum bm_ast_node_type type);
extern const wchar_t *debug_visibility(enum bm_ast_visibility visibility);
extern const wchar_t *debug_annotation_type(enum bm_ast_annotation_type type);
extern const wchar_t *debug_val_imm_type(enum bm_ast_val_imm_type type);
extern const wchar_t *debug_bool(enum bm_ast_bool b);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment