Changeset 44 for trunk/IPs/systemC/processor/Morpheo/Common
- Timestamp:
- Jul 17, 2007, 4:47:56 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Common
- Files:
-
- 1 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/Debug.h
r43 r44 48 48 } \ 49 49 } \ 50 fprintf(stdout,"In file %s, ",__FILE__); \ 51 fprintf(stdout,"at line %d, ",__LINE__); \ 50 fprintf(stdout,"<%s> ",func); \ 52 51 if (DEBUG >= DEBUG_FUNC) \ 53 { \ 54 fprintf(stdout,"in function \"%s\" ",func); \ 55 } \ 52 { \ 53 fprintf(stdout,"In file %s, ",__FILE__); \ 54 fprintf(stdout,"at line %d, ",__LINE__); \ 55 } \ 56 56 fprintf(stdout,": "); \ 57 57 fprintf(stdout,str); \ -
trunk/IPs/systemC/processor/Morpheo/Common/include/Test.h
r43 r44 5 5 #include <sstream> 6 6 #include <stdint.h> 7 #include " Include/ErrorMorpheo.h"7 #include "Common/include/ErrorMorpheo.h" 8 8 using namespace std; 9 9 … … 42 42 }; 43 43 44 #define TEST(type,exp1,exp2) do { test<type> (exp1,exp2,__FILE__,__LINE__);} while(0) 44 #define TEST(type,exp1,exp2) do { test<type> (exp1,exp2,__FILE__,__LINE__);} while(0) 45 #define TEST_STR(type,exp1,exp2,str...) do { fprintf(stdout,str); test<type> (exp1,exp2,__FILE__,__LINE__);} while(0) 45 46 46 47 #endif
Note: See TracChangeset
for help on using the changeset viewer.