Inline metamethods
This commit is contained in:
parent
0dd45f93a3
commit
a0b18d9867
@ -43,15 +43,13 @@ static bool Bool$is_none(const void *b, const TypeInfo_t*)
|
|||||||
return *(OptionalBool_t*)b == NONE_BOOL;
|
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 = {
|
public const TypeInfo_t Bool$info = {
|
||||||
.size=sizeof(bool),
|
.size=sizeof(bool),
|
||||||
.align=__alignof__(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
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
|
||||||
|
Loading…
Reference in New Issue
Block a user