From 66b73c8e76a6a6d15d7061e47d79eda5c5f38f64 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 7 Jul 2025 23:19:35 +0200 Subject: #1276: New code to generate include guard - generating macro identifier with unicode encoding if the filename has international character - optional user defined include guard --- fluid/Project.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fluid/Project.h') 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(); -- cgit v1.2.3