From 559e0a27ca6af0f1766d8b81384747148ca675a3 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 19 Mar 2024 19:47:06 +0100 Subject: [PATCH] move list var macros to the others --- include/config.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/config.hpp b/include/config.hpp index 97e52e2..8656c87 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -55,6 +55,10 @@ #define VAR_COLOUR(section, name) COLOUR name; #define VAR_COLOUR_D(section, name, default) COLOUR name = default; +#define VAR_LIST(section, name, type) std::vector name; +#define VAR_LIST_SEP(section, name, type, sep) std::vector name; +#define VAR_LIST_NUMBERED(section, name, type) std::vector name; + #define ENUM_TO_STRING_CASE(name, e) case name::e: os << #e; #define ENUM_FROM_STRING(name, e) if (input == #e) en = name::e; @@ -109,10 +113,6 @@ #define VAR_STRUCT(section, name, struct_type) struct_type name; #define VAR_STRUCT_D(section, name, struct_type, default) struct_type name = default; -#define VAR_LIST(section, name, type) std::vector name; -#define VAR_LIST_SEP(section, name, type, sep) std::vector name; -#define VAR_LIST_NUMBERED(section, name, type) std::vector name; - #include #undef FE_0