Rcpp11 has its own set of debug macros for debugging Rcpp11, but would it make sense to provide users with a consistent set of debug macros for use in their own code? Essentially providing a mechanism for users to do something like
#define USING_RCPP_DEBUG_MACROS
which would then provide a set of macros that could be used.
I'm a fan of the macros here and they could easily be tailored to use R's printing mechanism.