1
0
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:
Thomas Harte
2020-03-11 23:25:29 -04:00
parent 044a2b67e1
commit fd052189ca
11 changed files with 105 additions and 36 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -17,6 +17,8 @@
namespace Reflection {
#define DeclareField(Name) declare(&Name, #Name)
template <typename Owner> class Struct {
public:
/*!