This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

question about interpreter


In the interpreter code I see defines like this:

    #define LOADL(I)  ({ jint __idx = (I); \
	(sp++)->ia[0] = locals[__idx].ia[0]; \
	(sp++)->ia[0] = locals[__idx+1].ia[0]; \
     })

As far as I can tell all uses of this macro (and those like it) are
statements and not expressions.  Is there a reason we're using ({...})
and not simply {...}?  This causes many warnings ("value computed not
used") from gcc.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]