equal
deleted
inserted
replaced
25 /** |
25 /** |
26 Debug macro for serial port logging of function names and signatures |
26 Debug macro for serial port logging of function names and signatures |
27 e.g. |
27 e.g. |
28 <Function> void CMyClass::MyFunction (TInt aParam) |
28 <Function> void CMyClass::MyFunction (TInt aParam) |
29 */ |
29 */ |
|
30 #define LOG_FUNC if (gVerboseOutput) RDebug::Printf("<Function> %s", __PRETTY_FUNCTION__); |
30 |
31 |
31 const TInt KErrAssertionInternal = 3; |
32 const TInt KErrAssertionInternal = 3; |
32 |
33 |
33 #define TEST_ASSERTION(a,b) if (!(a)) {test.Printf(_L("ASSERTION FAILED!\n line %d file %S.\n"), \ |
34 #define TEST_ASSERTION(a,b) if (!(a)) {test.Printf(_L("ASSERTION FAILED!\n line %d file %S.\n"), \ |
34 __LINE__, __FILE__); test.Printf(b); \ |
35 __LINE__, __FILE__); test.Printf(b); \ |
35 __ASSERT_ALWAYS(a, User::Panic(_L("Test F/W Err"), KErrAssertionInternal));}; |
36 __ASSERT_ALWAYS(a, User::Panic(_L("Test F/W Err"), KErrAssertionInternal));}; |
36 |
37 |
37 |
38 |
|
39 #define LOG_FUNCERROR(a) RDebug::Printf("[WARNING %s failed %d]", __PRETTY_FUNCTION__, a); |
38 |
40 |
39 /** |
41 /** |
40 Debug macro to output test in 'verbose' detail mode |
42 Debug macro to output test in 'verbose' detail mode |
41 */ |
43 */ |
42 #define LOG_VERBOSE1(a) if (gVerboseOutput) test.Printf(a); |
44 #define LOG_VERBOSE1(a) if (gVerboseOutput) test.Printf(a); |