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

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 11  |  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. Get all function parameter names
  2. char const * bar (T1 x, T2 y) {
  3.     return "bar";
  4. }
  5.  
  6. char const * foo (T1 z, T2 w) {
  7.     return bar(__PARAMS__);
  8. }
  9.        
  10. char const * bar (T1 x, T2 y) {
  11.     return "bar";
  12. }
  13.  
  14. char const * foo (T1 z, T2 w) {
  15.     return bar(z, w);
  16. }
  17.        
  18. void f0 () {
  19.     DumpCode(__PARAMS__); // DumpCode();
  20. }
  21.  
  22. void f1 (T1 x) {
  23.     DumpCode(__PARAMS__); // DumpCode(x);
  24. }
  25.  
  26. void f2 (T1 x, T2 y) {
  27.     DumpCode(__PARAMS__); // DumpCode(x, y);
  28. }