Add constant literal expressions

This commit is contained in:
gingerBill
2019-12-27 15:49:52 +00:00
parent 880c7f01a8
commit f99f351e01
5 changed files with 284 additions and 42 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ void check_init_constant(CheckerContext *ctx, Entity *e, Operand *operand) {
return;
}
#if 1
#if 0
if (!is_type_constant_type(operand->type)) {
gbString type_str = type_to_string(operand->type);
error(operand->expr, "Invalid constant type: '%s'", type_str);