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]

Re: question about interpreter


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

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