From 310478521be031afd7d972d29895c75ad0e82a15 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 15 May 2008 01:06:57 +0000 Subject: [PATCH] updated the docs --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402238 --- docs/docs/metaprogramming.xml | 60 +++++++++++++++++++++++++++++++++++ docs/docs/release_notes.xml | 16 +++++++++- docs/docs/term_index.xml | 5 +++ 3 files changed, 80 insertions(+), 1 deletion(-) diff --git a/docs/docs/metaprogramming.xml b/docs/docs/metaprogramming.xml index 8852f39f8..2c10ecf8b 100644 --- a/docs/docs/metaprogramming.xml +++ b/docs/docs/metaprogramming.xml @@ -47,6 +47,9 @@
Global Functions DLIB_ASSERT + DLIB_STACK_TRACE + DLIB_STACK_TRACE_NAMED + get_stack_trace DLIB_CASSERT COMPILE_TIME_ASSERT ASSERT_ARE_SAME_TYPE @@ -337,6 +340,63 @@ + + + + DLIB_STACK_TRACE + dlib/assert.h + dlib/stack_trace.h + +

+ This is a preprocessor macro that allows you to tag a function so + that dlib will keep track of it in a function call stack. That is, + you will be able to see a stack trace by calling get_stack_trace + if you put this macro at the top of your functions. +

+

+ This macro is only enabled if DLIB_ENABLE_STACK_TRACE is defined. If it isn't defined then + this macro doesn't do anything. Also note that when this macro is defined it will + cause DLIB_ASSERT and DLIB_CASSERT + to include a stack trace in their error messages. +

+
+ +
+ + + + + + DLIB_STACK_TRACE_NAMED + dlib/assert.h + dlib/stack_trace.h + + This is a preprocessor macro just like DLIB_STACK_TRACE + except that it allows you to supply your own string to use as the function name + in the stack trace instead of the one deduced by DLIB_STACK_TRACE. +

+ This macro is only enabled if DLIB_ENABLE_STACK_TRACE is defined. +

+
+ +
+ + + + + get_stack_trace + dlib/assert.h + dlib/stack_trace.h + + This function allows you to query the current stack trace. +

+ This macro is only enabled if DLIB_ENABLE_STACK_TRACE is defined. +

+
+ +
+ + diff --git a/docs/docs/release_notes.xml b/docs/docs/release_notes.xml index 3fe7f5994..068acb656 100644 --- a/docs/docs/release_notes.xml +++ b/docs/docs/release_notes.xml @@ -11,6 +11,20 @@ +New Stuff: + - Added some macros that allow dlib to create a stack trace + +Non-Backwards Compatible Changes: + +Bug fixes: + +Other: + + + + + + New Stuff: - Added an implementation of the kernel recursive least squares algorithm @@ -29,7 +43,7 @@ Other: - Added some stuff to make people get a really obvious error message when they set up the include path incorrectly. - + diff --git a/docs/docs/term_index.xml b/docs/docs/term_index.xml index 170341ac6..367424d87 100644 --- a/docs/docs/term_index.xml +++ b/docs/docs/term_index.xml @@ -510,6 +510,11 @@ + + + + +