mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 17:16:44 +00:00
Adds reflection to all of the other computer targets.
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@
|
||||
namespace Reflection {
|
||||
|
||||
#define ReflectableEnum(Name, Type, ...) \
|
||||
enum class Name: Type { Mac128k, Mac512k, Mac512ke, MacPlus }; \
|
||||
enum class Name: Type { __VA_ARGS__ }; \
|
||||
constexpr static const char *__declaration##Name = #__VA_ARGS__;
|
||||
|
||||
#define EnumDeclaration(Name) #Name, __declaration##Name
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
namespace Reflection {
|
||||
|
||||
#define DeclareField(Name) declare(&Name, #Name)
|
||||
|
||||
template <typename Owner> class Struct {
|
||||
public:
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user