[Commit] nickle abort.5c,1.4,1.5

Bart Massey commit at keithp.com
Sun Jul 6 20:24:49 PDT 2003


Committed by: bart

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv9668

Modified Files:
	abort.5c 
Log Message:
Make the debug trace depth user specifiable



Index: abort.5c
===================================================================
RCS file: /local/src/CVS/nickle/abort.5c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- abort.5c	9 Nov 2002 06:23:39 -0000	1.4
+++ abort.5c	7 Jul 2003 02:24:47 -0000	1.5
@@ -1,7 +1,10 @@
 namespace Abort {
+    public int trace_depth = 20;
+
     public exception aborting(string);
 
     public void abort(string reason, args ...) {
+	Debug::trace(Thread::current(), trace_depth);
 	string reasonmsg = File::vsprintf(reason, args);
 	raise aborting(reasonmsg);
     }




More information about the Commit mailing list