From 049bd1440d888eff5fd9e2b9e64320fb83d2be29 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 24 Jan 2022 20:53:37 -0500 Subject: enums almost working --- 05/constants.b | 1 + 1 file changed, 1 insertion(+) (limited to '05/constants.b') diff --git a/05/constants.b b/05/constants.b index a9f7774..9c20fdc 100644 --- a/05/constants.b +++ b/05/constants.b @@ -201,6 +201,7 @@ ; array of n t's: TYPE_ARRAY {n as 8 bytes} t ; struct/union: TYPE_STRUCT/TYPE_UNION {0 for incomplete types/4-byte pointer to struct/union} ; function: TYPE_FUNCTION {arg1 type} {arg2 type} ... {argn type} 0 {return type} +; note that enum types are just treated as ints. #define TYPE_VOID 1 #define TYPE_CHAR 3 #define TYPE_UNSIGNED_CHAR 4 -- cgit v1.2.3