]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.19
authorfred <fred>
Fri, 20 Dec 1996 15:27:27 +0000 (15:27 +0000)
committerfred <fred>
Fri, 20 Dec 1996 15:27:27 +0000 (15:27 +0000)
src/debug.cc
src/template3.cc

index eaed33f080c0836973ce7e8fdd435aa3df3b82d1..1d27e81359bc04e3f9f07eeabf411d8802f07e6d 100644 (file)
@@ -1,4 +1,5 @@
 #include <fstream.h>
+#include <signal.h>
 #include <std/new.h>
 #include <stdlib.h>
 #include "debug.hh"
@@ -19,12 +20,19 @@ mynewhandler()
     assert(false);
 }
 
+void
+float_handler(int)
+{
+    cerr << "Floating point exception .. \n"<< flush;
+    assert(false);
+}
 
 void
 debug_init()
 {
     set_new_handler(&mynewhandler);
     set_matrix_debug(monitor);
+    signal(SIGFPE, float_handler);
 }   
 
 bool check_debug=false;
index 3e06cfdb231171b5faa3b9285d84d3174fb3fe44..2852ebda2179e0997674a8e83d47519be0ba8b34 100644 (file)
@@ -7,13 +7,13 @@
 #include "inputcommands.hh"
 #include "molecule.hh"
 #include "plist.cc"
-
+#include "staffcommands.hh"
 
 IPL_instantiate(Atom);
 IPL_instantiate(Command);
 IPL_instantiate(Atom);
-IPL_instantiate(Command);
 IPL_instantiate(Input_command);
 IPL_instantiate(Commands_at);
+IPL_instantiate(Staff_commands_at);
 IPL_instantiate(Input_staff);
 IPL_instantiate(Input_music);