fte-team / fteqw

This is the official GitHub mirror for the FTEQW project.
https://www.fteqw.org/
180 stars 55 forks source link

#define func generating improper opcodes #68

Closed Xylemon closed 1 year ago

Xylemon commented 1 year ago

https://sourceforge.net/p/fteqw/tickets/87/

paril101 wrote on 2020-07-08:

```#define itoe(e) ((entity)(__variant)(e))
#define nextent(e) itoe((e).s.number + 1)

....

from = nextent(from);

generates different (invalid) assembly compared to:

from = itoe(from.s.number + 1);
Xylemon commented 1 year ago

paril101 wrote on 2020-07-08:

Red herring, code works as expected, pls close