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

Method func

src/libdebug/examples/example_libdebug.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 1

main_implFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected