Hi,
(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)
See http://msdn2.microsoft.com/en-us/library/m…415(VS.80).aspx
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
Any idea?
Best,
Jan.