Barry Allard - 2014-06-09

FWIW, here's the macro:

/* Yes, it's hacky and doesn't give the value like a debugger but it's a handy option. */
/* Note for void fns: s/return;/return ((void)0);/g */
#if defined(TRACE_RETURN) && ! defined(NDEBUG)
#include <stdio.h>
#define return(...) { \
  fprintf(stderr, "%s:%d return %s\n" , __FILE__, __LINE__, #__VA_ARGS__ ); \
  return __VA_ARGS__; \
}
#endif