diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-05 23:30:41 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-05 23:30:41 +0100 |
| commit | ff869e7419ef3c6c76aa693b178a5f2c15975a8c (patch) | |
| tree | 99340afb0629b1deab367ca912fc4023b3ea9c43 /fluid/code.cxx | |
| parent | 45d1d95b5765d99a68c7abf48c27c8aabf8bc8bf (diff) | |
Fluid STR 3460: Shell Cmd would saye code to wrong path.
Diffstat (limited to 'fluid/code.cxx')
| -rw-r--r-- | fluid/code.cxx | 9 |
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) |
