Libdebug test class
| 24 | |
| 25 | /// Libdebug test class |
| 26 | struct TestClassA { |
| 27 | bool func([[maybe_unused]] int a = 2) |
| 28 | { |
| 29 | // this prints "func" |
| 30 | debug_out_info("default", DBG_FUNC_NAME << "\n"); |
| 31 | |
| 32 | // this prints "bool<unnamed>::TestClassA::func()" if in anonymous namespace, |
| 33 | // else "bool test::TestClass::func()". |
| 34 | debug_out_info("default", DBG_FUNC_PRNAME << "\n"); |
| 35 | |
| 36 | // prints "test::TestClassA::func(): function called." |
| 37 | debug_out_info("default", DBG_FUNC_MSG << "function called.\n"); |
| 38 | |
| 39 | return true; |
| 40 | } |
| 41 | }; |
| 42 | |
| 43 | } |
| 44 |