diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 21:48:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 21:48:53 -0400 |
| commit | 5ee185a4896e43c67b6d299becfa616da78fb9f4 (patch) | |
| tree | 183ceef2fd21230c89334d7d039255d1c86c5dca /stdlib/metamethods.h | |
| parent | f4aaf7b73481248f6768302be688700a364a1af8 (diff) | |
Move stdlib into src/
Diffstat (limited to 'stdlib/metamethods.h')
| -rw-r--r-- | stdlib/metamethods.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/stdlib/metamethods.h b/stdlib/metamethods.h deleted file mode 100644 index a75fcf7f..00000000 --- a/stdlib/metamethods.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -// Metamethods are methods that all types share: - -#include <stdint.h> - -#include "datatypes.h" -#include "types.h" -#include "util.h" - -PUREFUNC uint64_t generic_hash(const void *obj, const TypeInfo_t *type); -PUREFUNC int32_t generic_compare(const void *x, const void *y, const TypeInfo_t *type); -PUREFUNC bool generic_equal(const void *x, const void *y, const TypeInfo_t *type); -Text_t generic_as_text(const void *obj, bool colorize, const TypeInfo_t *type); -void _serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type); -Array_t generic_serialize(const void *x, const TypeInfo_t *type); -void _deserialize(FILE *input, void *outval, Array_t *pointers, const TypeInfo_t *type); -void generic_deserialize(Array_t bytes, void *outval, const TypeInfo_t *type); -int generic_print(const void *obj, bool colorize, const TypeInfo_t *type); -void cannot_serialize(const void*, FILE*, Table_t*, const TypeInfo_t *type); -void cannot_deserialize(FILE*, void*, Array_t*, const TypeInfo_t *type); - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
