summaryrefslogtreecommitdiff
path: root/fluid/Project.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-07-07 23:19:35 +0200
committerMatthias Melcher <github@matthiasm.com>2025-07-07 23:19:41 +0200
commit66b73c8e76a6a6d15d7061e47d79eda5c5f38f64 (patch)
tree351222eea8613b1d2c3ad5cb20d9c558e3db7c42 /fluid/Project.h
parent5c33d3051f06b3d0aa3514127d2cc8ee1c122874 (diff)
#1276: New code to generate include guard
- generating macro identifier with unicode encoding if the filename has international character - optional user defined include guard
Diffstat (limited to 'fluid/Project.h')
-rw-r--r--fluid/Project.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/Project.h b/fluid/Project.h
index f82529b1b..065c7d383 100644
--- a/fluid/Project.h
+++ b/fluid/Project.h
@@ -69,6 +69,8 @@ public: // Member Variables
std::string header_file_name = ".h";
/// Hold the default extension for source code files, or the entire filename if set via command line.
std::string code_file_name = ".cxx";
+ /// Macro used in header file for #ifdef MACRO \n #defined MACRO \n ... \n #endif
+ std::string include_guard = "";
/// Used as a counter to set the .fl project dir as the current directory.
int in_project_dir { 0 };
@@ -101,7 +103,7 @@ public: // Methods
void enter_project_dir();
void leave_project_dir();
-
+
void set_filename(const char *c);
void write_strings();