| 72 private: |
72 private: |
| 73 str m_val; |
73 str m_val; |
| 74 }; |
74 }; |
| 75 |
75 |
| 76 // Formatter function |
76 // Formatter function |
| 77 str doFormat( std::vector< StringFormatArg > args ); |
77 str doFormat( initlist<StringFormatArg> args ); |
| 78 |
78 |
| 79 // printf replacement |
79 // printf replacement |
| 80 void doPrint( initlist<StringFormatArg> args ); // heh |
80 void doPrint( initlist<StringFormatArg> args ); |
| 81 |
81 |
| 82 // Macros to access these functions |
82 // Macros to access these functions |
| 83 #ifndef IN_IDE_PARSER |
83 #ifndef IN_IDE_PARSER |
| 84 # define fmt(...) doFormat({ __VA_ARGS__ }) |
84 # define fmt(...) doFormat({ __VA_ARGS__ }) |
| 85 # define print(...) doPrint({ __VA_ARGS__ }) |
85 # define print(...) doPrint({ __VA_ARGS__ }) |