Skip to content
  • Gabor Greif's avatar
    abstract away from the 'build-toolchain'-dependent sizeof(...) operator · 5309bd04
    Gabor Greif authored and Simon Marlow's avatar Simon Marlow committed
    The sizes obtained this way do not work on a target system in general.
    So in a future cross-compilable setup we need another way of obtaining
    expansions for the macros OFFSET, FIELD_SIZE and TYPE_SIZE.
    
    Guarded against accidental use of 'sizeof' by poisoning.
    
    Verified that the generated *Constants.h/hs files are unchanged.
    5309bd04