From: Safey A.Halim Date: Fri, 12 Nov 2010 10:32:14 +0000 (+0000) Subject: Adding a macro to Seaspider test. X-Git-Tag: initial-import-from-subversion-38251~19759 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e1d08d24f8fb92af997a12b863bd537dadffcf6;p=oweals%2Fgnunet.git Adding a macro to Seaspider test. --- diff --git a/src/monkey/seaspider/org/gnunet/seaspider/SeaspiderTest.c b/src/monkey/seaspider/org/gnunet/seaspider/SeaspiderTest.c index 5700f9915..d77a16a98 100644 --- a/src/monkey/seaspider/org/gnunet/seaspider/SeaspiderTest.c +++ b/src/monkey/seaspider/org/gnunet/seaspider/SeaspiderTest.c @@ -8,6 +8,7 @@ #define PRE_PROC_DIR 0 +#define MACRO_fun(arg1, arg2) (arg1 + arg2) struct MyStruct { int member; @@ -27,14 +28,6 @@ static int fun(int arg1, int arg2) return arg1 + arg2; } -/* - * "inline" is a showstopper for the parser! - * -inline int funInline(int arg1, int arg2) -{ - return arg1 + arg2; -} -*/ int main(int args, const char * argv[]) { @@ -80,7 +73,7 @@ int main(int args, const char * argv[]) fun(enumMember1, enumMember2 ? enumMember2 : enumMember1); // ternary operator break; default: - fun(enumMember1, PRE_PROC_DIR); // preprocessing directive + MACRO_fun(enumMember1, PRE_PROC_DIR); // preprocessing directive break; } }