Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define TRACE_FUNC( symbol ) replacement-text`
- #define TRACE_FUNC(sym) std::cout << #sym << "() calledn"
- void foo()
- {
- TRACE_FUNC(foo);
- ...
- }
- #define TRACE_FUNC(sym) printf("%s() called", #sym);
- TRACE_FUNC(printf)
- printf() called
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement