- Adjustments to component system design.

- Added indexed parameters to format strings
This commit is contained in:
2025-10-06 12:47:11 -04:00
parent 7b87828f06
commit b9026ec8da
12 changed files with 207 additions and 199 deletions

View File

@@ -20,7 +20,7 @@
#define FENNEC_LANG_STARTUP_H
// Helper for running a function before main()
#define STATIC_CONSTRUCTOR(f) \
#define FENNEC_STATIC_CONSTRUCTOR(f) \
inline static void f(void); \
struct f##_t_ { inline f##_t_(void) { f(); } }; inline static f##_t_ f##_; \
inline static void f(void)

View File

@@ -54,6 +54,11 @@ public:
typed(TypeT*)
: type(typeuuid<TypeT, RootT>()) {
}
template<typename TypeT>
static uint64_t id() {
return typeuuid<TypeT, RootT>();
}
};
}