Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 26th, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)