fx: implement a proper value-type mechanism

This commit is contained in:
2026-05-17 17:09:05 +01:00
parent 65a7a025c5
commit f1258489d1
56 changed files with 1343 additions and 1112 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <fx/int.h>
#include <fx/value-type.h>
/*** CLASS DEFINITION *********************************************************/
FX_TYPE_CLASS_BEGIN(fx_byte)
FX_TYPE_VTABLE_INTERFACE_BEGIN(fx_object, FX_TYPE_OBJECT)
FX_INTERFACE_ENTRY(to_string) = NULL;
FX_TYPE_VTABLE_INTERFACE_END(fx_object, FX_TYPE_OBJECT)
FX_TYPE_CLASS_END(fx_byte)
FX_TYPE_DEFINITION_BEGIN(fx_byte)
__FX_VALUE_TYPE_ID(BYTE);
FX_TYPE_EXTENDS(FX_TYPE_VALUE_TYPE);
FX_TYPE_NAME("fx.byte");
FX_TYPE_CLASS(fx_byte_class);
FX_TYPE_INSTANCE_PRIVATE(byte);
FX_TYPE_DEFINITION_END(fx_byte)