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/io/Project_Writer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fluid/io/Project_Writer.cxx') diff --git a/fluid/io/Project_Writer.cxx b/fluid/io/Project_Writer.cxx index 1975ef85d..387c0093f 100644 --- a/fluid/io/Project_Writer.cxx +++ b/fluid/io/Project_Writer.cxx @@ -115,12 +115,13 @@ int Project_Writer::write_project(const char *filename, int selected_only, bool write_string("\nutf8_in_src"); if (proj_.avoid_early_includes) write_string("\navoid_early_includes"); - + proj_.i18n.write(*this); if (!selected_only) { write_string("\nheader_name"); write_word(proj_.header_file_name.c_str()); write_string("\ncode_name"); write_word(proj_.code_file_name.c_str()); + write_string("\ninclude_guard"); write_word(proj_.include_guard.c_str()); Fluid.layout_list.write(this); if (g_shell_config) g_shell_config->write(this); -- cgit v1.2.3