Changeset 15100 for issm/trunk-jpl/src/c/shared/io/Print/Print.h
- Timestamp:
- 05/24/13 13:02:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/io/Print/Print.h
r15099 r15100 19 19 using namespace std; 20 20 /*macros:*/ 21 /* _print String_{{{*/22 /* macro to print some string . Only on cpu0*/23 #define _print String_(StreamArgs)\21 /* _printf_{{{*/ 22 /* macro to print some string on all cpus */ 23 #define _printf_(StreamArgs)\ 24 24 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 25 25 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs; \ 26 26 PrintfFunctionOnAllCpus(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0) 27 27 /*}}}*/ 28 /* _p printString_ {{{*/29 /* macro to print some string . Only on cpu0 */30 #define _p printString_(StreamArgs)\28 /* _printf0_ {{{*/ 29 /* macro to print some string only on cpu 0 */ 30 #define _printf0_(StreamArgs)\ 31 31 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 32 32 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs; \
Note:
See TracChangeset
for help on using the changeset viewer.