Article # 702, added by Geoworks, historical record
| first | previous | index | next | last |

How does ifidn work in assembly?



Q. In GEOS assembly, how exactly does 'ifidn' act? 

A. "ifidn" simply means "if identical". For example,

      ifidn HARDWARE_TYPE, 

   evaluates to true if the macro "HARDWARE_TYPE" is defined to be
   "N9000C". It evaluates to false if HARDWARE_TYPE is defined to
   be something else. I think there'll be a compile-time error if
   HARDWARE_TYPE is not defined, but I'm not sure.