Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | e8b0c6a4ef2480a24fcf16de80eb487d760656a1 |
|---|---|
| Date: | 2009-06-15 18:06:42 |
| User: | stephan |
| Comment: | minor doc correction |
Tags And Properties
- branch=trunk inherited from [d21fde6e87]
- sym-trunk inherited from [d21fde6e87]
Changes
Changes to whdbg.h
| Old (7d638f095f900e1d) | New (1a80a6d82911e1ba) | |||
|---|---|---|---|---|
| 1 | #ifndef WANDERINGHORSE_NET_WHDBG_H_INCLUDED | 1 | #ifndef WANDERINGHORSE_NET_WHDBG_H_INCLUDED | |
| 2 | #define WANDERINGHORSE_NET_WHDBG_H_INCLUDED 1 | 2 | #define WANDERINGHORSE_NET_WHDBG_H_INCLUDED 1 | |
| 3 | 3 | |||
| 4 | /** @page whdbg_page_main whdbg: Debugging Library for C | 4 | /** @page whdbg_page_main whdbg: Debugging Library for C | |
| 5 | 5 | |||
| 8 hidden lines | ||||
| 14 | // in main(): | 14 | // in main(): | |
| 15 | whdbg_set_stream( stderr ); | 15 | whdbg_set_stream( stderr ); | |
| 16 | whdbg_set_flags( whdbg_get_flags() | WDBG_INFO ); | 16 | whdbg_set_flags( whdbg_get_flags() | WDBG_INFO ); | |
| 17 | 17 | |||
| 18 | // ... in an arbitrary function ... | 18 | // ... in an arbitrary function ... | |
| 19 | int x = 4; | | | 19 | int x = 42; |
| 20 | WHDBG(WHDBG_INFO)("x=%d", x); | 20 | WHDBG(WHDBG_INFO)("x=%d", x); | |
| 21 | @endcode | 21 | @endcode | |
| 22 | 22 | |||
| 23 | That will send something like the following to the specified debug stream: | 23 | That will send something like the following to the specified debug stream: | |
| 24 | 24 | |||
| 304 hidden lines | ||||
| 329 | #ifdef __cplusplus | 329 | #ifdef __cplusplus | |
| 330 | } /* extern "C" */ | 330 | } /* extern "C" */ | |
| 331 | #endif | 331 | #endif | |
| 332 | 332 | |||
| 333 | #endif /* WANDERINGHORSE_NET_WHDBG_H_INCLUDED */ | 333 | #endif /* WANDERINGHORSE_NET_WHDBG_H_INCLUDED */ | |