| 531 | | * @param m custom log message in format <tt>("string\n" [, args])</tt> |
|---|
| 532 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 533 | | * join two separate Log* calls and make this op atomic |
|---|
| 534 | | */ |
|---|
| 535 | | #define LogWarning(m) \ |
|---|
| 536 | | do { Log(("WARNING! ")); Log(m); } while (0) |
|---|
| | 541 | * |
|---|
| | 542 | * @param a Custom log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 543 | */ |
|---|
| | 544 | #if defined(LOG_USE_C99) |
|---|
| | 545 | # define LogWarning(a) \ |
|---|
| | 546 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, "WARNING! %M", _LogRemoveParentheseis a ) |
|---|
| | 547 | #else |
|---|
| | 548 | # define LogWarning(a) \ |
|---|
| | 549 | do { Log(("WARNING! ")); Log(a); } while (0) |
|---|
| | 550 | #endif |
|---|
| 548 | | * @param m custom log message in format <tt>("string\n" [, args])</tt> |
|---|
| 549 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 550 | | * join two separate Log* calls and make this op atomic |
|---|
| 551 | | */ |
|---|
| 552 | | #define LogTraceMsg(m) \ |
|---|
| 553 | | do { LogTrace(); LogFlow(m); } while (0) |
|---|
| | 562 | * |
|---|
| | 563 | * @param a Custom log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 564 | */ |
|---|
| | 565 | #ifdef LOG_USE_C99 |
|---|
| | 566 | # define LogTraceMsg(a) \ |
|---|
| | 567 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_FLOW, LOG_GROUP, ">>>>> %s (%d): %M" LOG_FN_FMT, __FILE__, __LINE__, __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 568 | #else |
|---|
| | 569 | # define LogTraceMsg(a) \ |
|---|
| | 570 | do { LogFlow((">>>>> %s (%d): " LOG_FN_FMT, __FILE__, __LINE__, __PRETTY_FUNCTION__)); LogFlow(a); } while (0) |
|---|
| | 571 | #endif |
|---|
| 557 | | * Prepends the given log message with the function name followed by a semicolon |
|---|
| 558 | | * and space. |
|---|
| 559 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 560 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 561 | | * join two separate Log* calls and make this op atomic |
|---|
| 562 | | */ |
|---|
| 563 | | #define LogFunc(m) \ |
|---|
| 564 | | do { Log((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log(m); } while (0) |
|---|
| | 575 | * |
|---|
| | 576 | * Prepends the given log message with the function name followed by a |
|---|
| | 577 | * semicolon and space. |
|---|
| | 578 | * |
|---|
| | 579 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 580 | */ |
|---|
| | 581 | #ifdef LOG_USE_C99 |
|---|
| | 582 | # define LogFunc(a) \ |
|---|
| | 583 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 584 | #else |
|---|
| | 585 | # define LogFunc(a) \ |
|---|
| | 586 | do { Log((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); Log(a); } while (0) |
|---|
| | 587 | #endif |
|---|
| 568 | | * line is additionally perpended with a hex value of |this| pointer. |
|---|
| 569 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 570 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 571 | | * join two separate Log* calls and make this op atomic |
|---|
| 572 | | */ |
|---|
| 573 | | #define LogThisFunc(m) \ |
|---|
| 574 | | do { Log(("{%p} " LOG_FN_FMT ": ", this, __PRETTY_FUNCTION__)); Log(m); } while (0) |
|---|
| | 591 | * line is additionally prepended with a hex value of |this| pointer. |
|---|
| | 592 | * |
|---|
| | 593 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 594 | */ |
|---|
| | 595 | #ifdef LOG_USE_C99 |
|---|
| | 596 | # define LogThisFunc(a) \ |
|---|
| | 597 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, "{%p} " LOG_FN_FMT ": %M", this, __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 598 | #else |
|---|
| | 599 | # define LogThisFunc(a) \ |
|---|
| | 600 | do { Log(("{%p} " LOG_FN_FMT ": ", this, __PRETTY_FUNCTION__)); Log(a); } while (0) |
|---|
| | 601 | #endif |
|---|
| 578 | | * Prepends the given log message with the function name followed by a semicolon |
|---|
| 579 | | * and space. |
|---|
| 580 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 581 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 582 | | * join two separate Log* calls and make this op atomic |
|---|
| 583 | | */ |
|---|
| 584 | | #define LogFlowFunc(m) \ |
|---|
| 585 | | do { LogFlow((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); LogFlow(m); } while (0) |
|---|
| | 605 | * |
|---|
| | 606 | * Prepends the given log message with the function name followed by |
|---|
| | 607 | * a semicolon and space. |
|---|
| | 608 | * |
|---|
| | 609 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 610 | */ |
|---|
| | 611 | #ifdef LOG_USE_C99 |
|---|
| | 612 | # define LogFlowFunc(a) \ |
|---|
| | 613 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_FLOW, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 614 | #else |
|---|
| | 615 | # define LogFlowFunc(a) \ |
|---|
| | 616 | do { LogFlow((LOG_FN_FMT ": ", __PRETTY_FUNCTION__)); LogFlow(a); } while (0) |
|---|
| | 617 | #endif |
|---|
| 589 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 590 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 591 | | * join two separate Log* calls and make this op atomic |
|---|
| 592 | | */ |
|---|
| 593 | | #define LogWarningFunc(m) \ |
|---|
| 594 | | do { Log((LOG_FN_FMT ": WARNING! ", __PRETTY_FUNCTION__)); Log(m); } while (0) |
|---|
| | 621 | * |
|---|
| | 622 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 623 | */ |
|---|
| | 624 | #ifdef LOG_USE_C99 |
|---|
| | 625 | # define LogWarningFunc(a) \ |
|---|
| | 626 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, LOG_FN_FMT ": WARNING! %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 627 | #else |
|---|
| | 628 | # define LogWarningFunc(a) \ |
|---|
| | 629 | do { Log((LOG_FN_FMT ": WARNING! ", __PRETTY_FUNCTION__)); Log(a); } while (0) |
|---|
| | 630 | #endif |
|---|
| 598 | | * line is additionally perpended with a hex value of |this| pointer. |
|---|
| 599 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 600 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 601 | | * join two separate Log* calls and make this op atomic |
|---|
| 602 | | */ |
|---|
| 603 | | #define LogFlowThisFunc(m) \ |
|---|
| 604 | | do { LogFlow(("{%p} " LOG_FN_FMT ": ", this, __PRETTY_FUNCTION__)); LogFlow(m); } while (0) |
|---|
| | 634 | * line is additionally prepended with a hex value of |this| pointer. |
|---|
| | 635 | * |
|---|
| | 636 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 637 | */ |
|---|
| | 638 | #ifdef LOG_USE_C99 |
|---|
| | 639 | # define LogFlowThisFunc(a) \ |
|---|
| | 640 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_FLOW, LOG_GROUP, "{%p} " LOG_FN_FMT ": %M", this, __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 641 | #else |
|---|
| | 642 | # define LogFlowThisFunc(a) \ |
|---|
| | 643 | do { LogFlow(("{%p} " LOG_FN_FMT ": ", this, __PRETTY_FUNCTION__)); LogFlow(a); } while (0) |
|---|
| | 644 | #endif |
|---|
| 608 | | * log line is additionally perpended with a hex value of |this| pointer. |
|---|
| 609 | | * @param m log message in format <tt>("string\n" [, args])</tt> |
|---|
| 610 | | * @todo use a Log macro with a variable argument list (requires MSVC8) to |
|---|
| 611 | | * join two separate Log* calls and make this op atomic |
|---|
| 612 | | */ |
|---|
| 613 | | #define LogWarningThisFunc(m) \ |
|---|
| 614 | | do { Log(("{%p} " LOG_FN_FMT ": WARNING! ", this, __PRETTY_FUNCTION__)); Log(m); } while (0) |
|---|
| 615 | | |
|---|
| 616 | | /** Shortcut to |LogFlowFunc ("ENTER\n")|, marks the beginnig of the function */ |
|---|
| | 648 | * log line is additionally prepended with a hex value of |this| pointer. |
|---|
| | 649 | * |
|---|
| | 650 | * @param a Log message in format <tt>("string\n" [, args])</tt>. |
|---|
| | 651 | */ |
|---|
| | 652 | #ifdef LOG_USE_C99 |
|---|
| | 653 | # define LogWarningThisFunc(a) \ |
|---|
| | 654 | _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, "{%p} " LOG_FN_FMT ": WARNING! %M", this, __PRETTY_FUNCTION__, _LogRemoveParentheseis a ) |
|---|
| | 655 | #else |
|---|
| | 656 | # define LogWarningThisFunc(a) \ |
|---|
| | 657 | do { Log(("{%p} " LOG_FN_FMT ": WARNING! ", this, __PRETTY_FUNCTION__)); Log(a); } while (0) |
|---|
| | 658 | #endif |
|---|
| | 659 | |
|---|
| | 660 | /** Shortcut to |LogFlowFunc ("ENTER\n")|, marks the beginnig of the function. */ |
|---|