diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:28:47 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:28:47 -0400 |
| commit | 25fa8ace21f0f6874f5b3ad1248e0e5d21190c84 (patch) | |
| tree | 63c99be2cdc9ffefa01b56598b5b518a6c67e7b4 /src/stdlib/datatypes.h | |
| parent | 686150b0cdd4990f020390dbbe52a3dc408cf550 (diff) | |
Add optional empty type
Diffstat (limited to 'src/stdlib/datatypes.h')
| -rw-r--r-- | src/stdlib/datatypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdlib/datatypes.h b/src/stdlib/datatypes.h index 40d9be3e..60b5dd55 100644 --- a/src/stdlib/datatypes.h +++ b/src/stdlib/datatypes.h @@ -73,6 +73,11 @@ typedef struct Empty$$struct { } Empty$$type; typedef struct { + bool has_value; + Empty$$type value; +} $OptionalEmpty$$type; + +typedef struct { void *fn, *userdata; } Closure_t; |
