aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/enums.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/enums.h')
-rw-r--r--src/stdlib/enums.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/stdlib/enums.h b/src/stdlib/enums.h
index 8345c527..99a0f615 100644
--- a/src/stdlib/enums.h
+++ b/src/stdlib/enums.h
@@ -15,24 +15,26 @@ PUREFUNC bool Enum$is_none(const void *obj, const TypeInfo_t *type);
void Enum$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type);
void Enum$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_t *type);
-#define Enum$metamethods { \
- .as_text=Enum$as_text, \
- .compare=Enum$compare, \
- .equal=Enum$equal, \
- .hash=Enum$hash, \
- .is_none=Enum$is_none, \
- .serialize=Enum$serialize, \
- .deserialize=Enum$deserialize, \
-}
+#define Enum$metamethods \
+ { \
+ .as_text = Enum$as_text, \
+ .compare = Enum$compare, \
+ .equal = Enum$equal, \
+ .hash = Enum$hash, \
+ .is_none = Enum$is_none, \
+ .serialize = Enum$serialize, \
+ .deserialize = Enum$deserialize, \
+ }
-#define PackedDataEnum$metamethods { \
- .hash=PackedData$hash, \
- .compare=Enum$compare, \
- .equal=PackedData$equal, \
- .as_text=Enum$as_text, \
- .is_none=Enum$is_none, \
- .serialize=Enum$serialize, \
- .deserialize=Enum$deserialize, \
-}
+#define PackedDataEnum$metamethods \
+ { \
+ .hash = PackedData$hash, \
+ .compare = Enum$compare, \
+ .equal = PackedData$equal, \
+ .as_text = Enum$as_text, \
+ .is_none = Enum$is_none, \
+ .serialize = Enum$serialize, \
+ .deserialize = Enum$deserialize, \
+ }
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0