Changeset 12486


Ignore:
Timestamp:
06/21/12 06:32:18 (13 years ago)
Author:
utke
Message:

macros to replace printf calls using stream syntax to avoid variants imposed by the C formatting related to the type of the printed variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/include/macros.h

    r12485 r12486  
    4646#endif
    4747/*}}}*/
     48/* _printLine_ {{{*/
     49/* macro to print a line, adds std::endl */
     50#define _printLine_(StreamArgs)\
     51   {std::cout << StreamArgs << std::endl;}
     52/*}}}*/
     53/* _printString_ {{{*/
     54/* macro to print some string, adds std::ends */
     55#define _printString_(StreamArgs)\
     56   {std::cout << StreamArgs << std::ends;}
     57/*}}}*/
    4858/* _assert_ {{{*/
    4959/*Assertion macro: do nothing if macro _ISSM_DEBUG_ undefined*/
Note: See TracChangeset for help on using the changeset viewer.