added the hawk::type() builtin function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-16 12:33:13 +09:00
parent 0407dd648c
commit a7d3432c11
3 changed files with 40 additions and 2 deletions

View File

@ -1404,7 +1404,8 @@ enum hawk_val_type_t
/* - the enumerators between HAWK_VAL_NIL and HAWK_VAL_ARR inclusive
* must be synchronized with an internal table of the __cmp_val
* function in run.c.
* - all enumerators must be in sync with __val_type_name in val.c */
* - all enumerators must be in sync with __val_type_name in val.c
* - all enumerators must be in sync with VAL_XXX defintion in mod-hawk.c */
HAWK_VAL_NIL = 0, /**< nil */
HAWK_VAL_CHAR = 1, /**< character */
HAWK_VAL_BCHR = 2, /**< byte character */