From ff869e7419ef3c6c76aa693b178a5f2c15975a8c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 5 Dec 2021 23:30:41 +0100 Subject: Fluid STR 3460: Shell Cmd would saye code to wrong path. --- fluid/code.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fluid/code.cxx') diff --git a/fluid/code.cxx b/fluid/code.cxx index 5cf462236..671cbb1a1 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -370,6 +370,15 @@ static Fl_Type* write_code(Fl_Type* p) { extern const char* header_file_name; extern Fl_Class_Type *current_class; + +/** \brief Write the source and header files for the current design. + + If the files already exist, they will be overwritten. + + \param[in] s filename of source code file + \param[in] t filename of the header file + \return 0 if the operation failed, 1 if it was successful + */ int write_code(const char *s, const char *t) { const char *filemode = "w"; if (write_sourceview) -- cgit v1.2.3