From 128c6d51ec8c70e230dc86b100cb887ba3f0378d Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 20 Jan 2022 07:00:50 +0000
Subject: [PATCH] Secrets to macros and c string concat at compile time

---
 secrets.hpp |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/secrets.hpp b/secrets.hpp
index d9d7ae8..6b77f17 100644
--- a/secrets.hpp
+++ b/secrets.hpp
@@ -1,15 +1,11 @@
 #pragma once
 
-#include <string>
-
-#define TEST
-
-constexpr const char* HOST="sytev070";
-#ifdef TEST
-constexpr const char* PORT="9005";
+#define HOST "sytev070"
+#ifdef TEST_EXCHANGE
+#define PORT "9005"
 #else
-constexpr const char* PORT="9000";
+#define PORT "9000"
 #endif
 
-constexpr const char* USER="jgrunbau";
-constexpr const char* PASS="b7d630945a0854581d9f86ba147f34a5";
+#define USER "jgrunbau"
+#define PASS "b7d630945a0854581d9f86ba147f34a5"

--
Gitblit v1.9.3