diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 18:09:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-29 18:09:12 -0500 |
| commit | f66f8ad7119207b99f00ea2ea389550ee65db5b3 (patch) | |
| tree | 5b5a7c887b311e3de2f2cb293b1228598c5b9eb1 /stdlib/functiontype.h | |
| parent | 4b5e4cd1f21582f5e5fa682ab4e4bff252963468 (diff) | |
Add serialization and deserialization
Diffstat (limited to 'stdlib/functiontype.h')
| -rw-r--r-- | stdlib/functiontype.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/functiontype.h b/stdlib/functiontype.h index 7745bff8..4dfef3b0 100644 --- a/stdlib/functiontype.h +++ b/stdlib/functiontype.h @@ -2,6 +2,7 @@ #include <stdbool.h> +#include "metamethods.h" #include "types.h" #include "util.h" @@ -15,6 +16,8 @@ PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t*); #define Func$metamethods ((metamethods_t){ \ .as_text=Func$as_text, \ .is_none=Func$is_none, \ + .serialize=cannot_serialize, \ + .deserialize=cannot_deserialize, \ }) #define Function$info(typestr) &((TypeInfo_t){.size=sizeof(void*), .align=__alignof__(void*), \ |
