A collection of coding snippets, tips, hints and random thoughts.
#include <iostream>#define MEINMAKRO 1.3.4#define STRINGIFY(x) #x#define TOSTRING(x) STRINGIFY(x)int main(){ std::cout << TOSTRING(MEINMAKRO) << std::endl; return 0;}
you may also be interested in ##, from the TowerMadness source:#define ADD_PROFILE( name ) \ static pProfiler profiler_##name;ADD_PROFILE(render,game);translates tostatic pProfiler profiler_render;
Cool, thanks for the hint.
you may also be interested in ##, from the TowerMadness source:
ReplyDelete#define ADD_PROFILE( name ) \
static pProfiler profiler_##name;
ADD_PROFILE(render,game);
translates to
static pProfiler profiler_render;
Cool, thanks for the hint.
ReplyDelete