mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Starts a switch to reflectable-style runtime options.
The Amstrad CPC and ZX80/81 have made the jump so far, subject to caveats. The macOS build is unlikely currently to work properly.
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Reflection {
|
||||
#define EnumDeclaration(Name) #Name, __declaration##Name
|
||||
|
||||
#define AnnounceEnum(Name) ::Reflection::Enum::declare<Name>(EnumDeclaration(Name))
|
||||
#define AnnounceEnumNS(Namespace, Name) ::Reflection::Enum::declare<Namespace::Name>(#Name, Namespace::__declaration##Name)
|
||||
|
||||
/*!
|
||||
This provides a very slight version of enum reflection; you can introspect only:
|
||||
|
Reference in New Issue
Block a user