4 #define VP_DEBUG_MODE 2
6 #include <visp3/core/vpConfig.h>
7 #include <visp3/core/vpDebug.h>
11 #ifdef ENABLE_VISP_NAMESPACE
18 std::cout <<
"Debug level 1 active: " << vpDEBUG_ENABLE(1) << std::endl;
19 std::cout <<
"Debug level 2 active: " << vpDEBUG_ENABLE(2) << std::endl;
20 std::cout <<
"Debug level 3 active: " << vpDEBUG_ENABLE(3) << std::endl;
23 vpTRACE(
"C-like trace");
24 vpTRACE(1,
"C-like trace level 1");
26 vpERROR_TRACE(
"C-like error trace");
27 vpERROR_TRACE(1,
"C-like error trace level 1");
32 vpDEBUG_TRACE(
"C-like debug trace");
33 vpDERROR_TRACE(
"C-like error trace");
36 "C-like debug trace level 2");
38 "C-like error trace level 2");
41 vpCTRACE <<
"C++-like trace" << std::endl;
42 vpCERROR <<
"C++-like error trace" << std::endl;
45 vpCDEBUG(2) <<
"C++-like debug trace level 2" << std::endl;