summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx9
1 files changed, 9 insertions, 0 deletions
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)