1 Sep 2010 23:31
[ swig-Bugs-1726158 ] variadic macros won't accept zero arguments
SourceForge.net <noreply <at> sourceforge.net>
2010-09-01 21:31:11 GMT
2010-09-01 21:31:11 GMT
Bugs item #1726158, was opened at 2007-05-26 17:38 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1726158&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: preprocessor Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jeremy (heivo) Assigned to: Nobody/Anonymous (nobody) Summary: variadic macros won't accept zero arguments Initial Comment: It is possible to define a variadic macro that has no fixed arguments, but impossible to call such a macro with zero arguments. Here is a simple test case set up for GCC: --------------------------------------- #define annotate(...) %feature("java:methodmodifiers"," <at> Annotation("#__VA_ARGS__") public") annotate(one=1,two=2) methodTwo; annotate(one=1) methodOne; annotate() methodZero; ---------------------------------------(Continue reading)
RSS Feed