From 1a6f1ea3b76c3ed4cad5aba5502af390ce50a2c0 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 28 May 2022 20:52:42 -0700 Subject: Changeset: 42 Change codegen input parsing to lookahead based; lookup table infra; input/output decl infra --- source-common/Enum.hpp | 12 ++++++------ source-common/MacrosCodegen.hpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source-common') diff --git a/source-common/Enum.hpp b/source-common/Enum.hpp index 5e106fe..e8750f2 100644 --- a/source-common/Enum.hpp +++ b/source-common/Enum.hpp @@ -61,32 +61,32 @@ public: } } - EnumFlags& operator|=(EnumFlags that) const { + EnumFlags& operator|=(EnumFlags that) { mValue |= that.mValue; return *this; } - EnumFlags& operator&=(EnumFlags that) const { + EnumFlags& operator&=(EnumFlags that) { mValue &= that.mValue; return *this; } - EnumFlags& operator^=(EnumFlags that) const { + EnumFlags& operator^=(EnumFlags that) { mValue ^= that.mValue; return *this; } - EnumFlags& operator|=(TEnum e) const { + EnumFlags& operator|=(TEnum e) { mValue |= 1 << static_cast(e); return *this; } - EnumFlags& operator&=(TEnum e) const { + EnumFlags& operator&=(TEnum e) { mValue &= 1 << static_cast(e); return *this; } - EnumFlags& operator^=(TEnum e) const { + EnumFlags& operator^=(TEnum e) { mValue ^= 1 << static_cast(e); return *this; } diff --git a/source-common/MacrosCodegen.hpp b/source-common/MacrosCodegen.hpp index d6d5c6f..6803023 100644 --- a/source-common/MacrosCodegen.hpp +++ b/source-common/MacrosCodegen.hpp @@ -3,5 +3,5 @@ #pragma once -#define BRUSSEL_CLASS +#define BRUSSEL_CLASS(name, options) #define BRUSSEL_ENUM(name, options) -- cgit v1.2.3-70-g09d2