From 2855642dd16cea260f3b32351f0529328a0bcb15 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 4 Oct 2025 15:54:30 +0200 Subject: namespacing locale, config, file_templates --- include/config.hpp | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'include/config.hpp') diff --git a/include/config.hpp b/include/config.hpp index 9598841..df99ab2 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -16,10 +16,8 @@ #pragma once -// major.minor.patch -#define PROGRAM_VERSION "0.1.0" - #include "stdint.h" +#include "imgui.h" #define s8 int8_t #define s16 int16_t @@ -31,7 +29,18 @@ #define u32 uint32_t #define u64 uint64_t -extern const char* country_codes[]; -extern s32 country_count; +namespace config { + static const char* PROGRAM_VERSION = "0.1.0"; // major.minor.patch + + static const char* country_codes[] = { + "AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", + "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", + "PL", "PT", "RO", "SK", "SI", "ES", "SE" + }; + + static s32 country_count = sizeof(country_codes) / sizeof(country_codes[0]); -#define COLOR_ERROR_OUTLINE IM_COL32(255, 0, 0, 80) \ No newline at end of file + namespace colors { + static const ImU32 COLOR_ERROR_OUTLINE = IM_COL32(255, 0, 0, 80); + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2