Grant Edwards wrote:
On 2007-11-14, Adam Dunkels <[email protected]> wrote:
I see that the gcc "pointers to labels" implementation is what
is used by default (which removes the restriction on using
switch() statements in a protothread).
I think it actually defaults to the switch()-based
implementation.
You're right. I misread the conditional in the include file.
Defining LC_INCLUDE to be "lc-addrlabels.h" will use the
label-pointer version. Have you thought about that being the
default when gcc is used?
Hadn't thought about that before... Is it possibly to reliably detect
GCC? I heard about non-gcc compilers that #define __GCC__ to make more
code compile.
/adam
--
Adam Dunkels <[email protected]>
http://www.sics.se/~adam/