(1) Will there be variadic macro support in cudafe, soon?
(2) Any idea how to implement preprocessor macros with variable nr. of argument macros in cuda Code on Windows?
I need a preprocessor macro with a variable number of arguments for debugging
like this one:
#define debug(…) printf (VA_ARGS)
The macro works with the native MS preprocessor.
However, on Windows cudafe is used by default for preprocessing and it seems it does not support macros with variable number of arguments.
I was hoping that this hint in the nvcc docu would help me solve my problem:
However, it does not seem to work at all, I get hundreds of errors such as