author | Tero Marttila <terom@fixme.fi> |
Wed, 20 May 2009 22:53:05 +0300 | |
branch | lua-threads |
changeset 203 | ffdf53fd0337 |
parent 189 | f351facab1f0 |
permissions | -rw-r--r-- |
189
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
#ifndef TEST_BACKTRACE_H |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
#define TEST_BACKTRACE_H |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
|
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
/** |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
* Maximum depth of a backtrace |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
*/ |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
#define TEST_BACKTRACE_MAX 64 |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
|
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
/** |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
* Dump out a backtrace via log_debug. |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
* |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
12 |
* The backtrace will exclude the \a skip highest levels of the backtrace. This should usually be at least one to not show the |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
13 |
* call to test_backtrace itself. |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
14 |
* |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
15 |
* At most TEST_BACKTRACE_MAX levels of the stack will be printed (this limit includes skip). |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
*/ |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
void test_backtrace (int skip); |
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
18 |
|
f351facab1f0
add a test/backtrace module and have ASSERT_FAIL dump out a backtrace, also, fix assert_str[n]cmp to handle should_be == NULL
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
19 |
#endif /* TEST_BACKTRACE_H */ |