diff options
Diffstat (limited to 'note_compiler/main.cpp')
-rw-r--r-- | note_compiler/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/note_compiler/main.cpp b/note_compiler/main.cpp index 8612bd2..3015551 100644 --- a/note_compiler/main.cpp +++ b/note_compiler/main.cpp @@ -741,11 +741,11 @@ void write_create_note() "}\n"; } -void write_destroy_note() +void write_destroy() { - out << "extern \"C\" void destroy_note(NoteSkel* obj)\n" + out << "void Note::destroy()\n" "{\n" - "\tdelete obj;\n" + "\tdelete this;\n" "}\n"; } @@ -770,6 +770,7 @@ void generate_source() //implementation of Note's functions write_ctor(); write_dtor(); + write_destroy(); write_empty_line(); write_recalc_factors(); @@ -795,9 +796,8 @@ void generate_source() write_empty_line(); write_empty_line(); - //implementation of create_new_note and destroy_note - write_create_note(); - write_destroy_note(); + //implementation of create_note and init_vars + include_file("interface.1"); } int main(int argc, char** argv) |