question about interpreter

Jeff Sturm jsturm@sigma6.com
Sat Apr 1 00:00:00 GMT 2000


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

Why not use inline functions instead?  C++ was supposed to eliminate the
preprocessor for most uses.  These macros aren't used in any C code,
after all...

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list