summaryrefslogtreecommitdiff
path: root/fluid/io/Project_Writer.cxx
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/io/Project_Writer.cxx
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/io/Project_Writer.cxx')
-rw-r--r--fluid/io/Project_Writer.cxx3
1 files changed, 2 insertions, 1 deletions
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);