This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
question about interpreter
- To: Java Discuss List <java-discuss at sourceware dot cygnus dot com>
- Subject: question about interpreter
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 10 Jan 2000 13:13:47 -0700
- Cc: Kresten Krab Thorup <krab at gnu dot org>
- Reply-To: tromey at cygnus dot com
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