Commit ec1ee46d24c48f993b2af94494f3103a1959a02a

Thomas de Grivel 2023-03-15T14:43:15

tag_type_to_string

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/libc3/tag.c b/libc3/tag.c
index 9300d1d..f6c7085 100644
--- a/libc3/tag.c
+++ b/libc3/tag.c
@@ -1055,6 +1055,9 @@ s8 * tag_type_to_string (e_tag_type type)
   case TAG_TUPLE: return "tuple";
   case TAG_VAR: return "var";
   }
+  assert(! "tag_type_to_string: unknown tag type");
+  errx(1, "tag_type_to_string: unknown tag type");
+  return NULL;
 }
 
 s_tag * tag_u8 (s_tag *tag, u8 x)