diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 13:45:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 13:45:09 -0400 |
| commit | a0b18d9867db13fc59f47b3e1b8fad5dcf3a1eba (patch) | |
| tree | c08911d6fce1d60bab7cf78be2deee1c0cd01503 /src/stdlib | |
| parent | 0dd45f93a3c24a0b830a5ce12ae75cde9bf01d9a (diff) | |
Inline metamethods
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/bools.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/stdlib/bools.c b/src/stdlib/bools.c index bf820664..1b408eaa 100644 --- a/src/stdlib/bools.c +++ b/src/stdlib/bools.c @@ -43,15 +43,13 @@ static bool Bool$is_none(const void *b, const TypeInfo_t*) return *(OptionalBool_t*)b == NONE_BOOL; } -static const metamethods_t Bool$metamethods = { - .as_text=Bool$as_text, - .is_none=Bool$is_none, -}; - public const TypeInfo_t Bool$info = { .size=sizeof(bool), .align=__alignof__(bool), - .metamethods=Bool$metamethods, + .metamethods={ + .as_text=Bool$as_text, + .is_none=Bool$is_none, + }, }; // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
