- Adjustments to component system design.
- Added indexed parameters to format strings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -54,6 +54,11 @@ public:
|
||||
typed(TypeT*)
|
||||
: type(typeuuid<TypeT, RootT>()) {
|
||||
}
|
||||
|
||||
template<typename TypeT>
|
||||
static uint64_t id() {
|
||||
return typeuuid<TypeT, RootT>();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user