From 58ed63cd18511b95b35ea30b0ccb6a3beae3b9b4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 6 Dec 2024 16:03:24 -0500 Subject: [PATCH] Consciously uglify. These shouldn't look like functions. --- Reflection/Struct.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reflection/Struct.hpp b/Reflection/Struct.hpp index b9261c100..120a85d50 100644 --- a/Reflection/Struct.hpp +++ b/Reflection/Struct.hpp @@ -27,8 +27,8 @@ namespace Reflection { #define DeclareField(Name) declare(&Name, #Name) -#define BeginDeclarations () void declare_fields() { -#define EndDeclarations () } \ +#define BEGIN_DECLARATIONS void declare_fields() { +#define END_DECLARATIONS } \ struct Declarer { Declarer() { Target t; t.declare_fields(); } }; \ static Declarer declarer;