9e241e7ad74f — Leonard Ritter a month ago
* hashing support for C enums
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/scopes/core.sc
M lib/scopes/core.sc +3 -0
@@ 7891,6 7891,9 @@ do
         __| = (simple-binary-storage-op (_ |))
         __& = (simple-binary-storage-op (_ &))
         __^ = (simple-binary-storage-op (_ ^))
+        __hash =
+            inline "CEnum-hash" (self)
+                hash (self as integer)
         __imply =
             spice-cast-macro
                 fn "CEnum-imply" (vT T)