Guest User

Untitled

a guest
May 26th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. How to define a macro that can be used to log function calls in C?
  2. #define NAME(x) x
  3. ...
  4. m_strTemp.Format("x key:0x%X", NAME(a_function)(a_param));
  5.  
  6. #define NAME(x) (TRACE(#x), x)
Advertisement
Add Comment
Please, Sign In to add comment