MCPcopy Create free account
hub / github.com/ashaduri/gsmartcontrol / TestClassA

Class TestClassA

src/libdebug/examples/example_libdebug.cpp:26–41  ·  view source on GitHub ↗

Libdebug test class

Source from the content-addressed store, hash-verified

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

Callers 1

main_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected