Structure containing UNIONS do not fold completly :(

like this:



DDPIXELFORMAT STRUC

ddpf_dwSize DD ?
ddpf_dwFlags DD ?
ddpf_dwFour DD ?

union
ddpf_dwRGBBitCount DD ?
ddpf_dwYUVBitCount DD ?
ddpf_dwZBufferBitDepth DD ?
ddpf_dwAlphaBitDepth DD ?
ends

union
ddpf_dwRBitMask DD ?
ddpf_dwYBitMask dd ?
ends

union
ddpf_dwGBitMask DD ?
ddpf_dwUBitMask DD ?
ends

union
ddpf_dwBBitMask DD ?
ddpf_dwVBitMask DD ?
ends

union
ddpf_dwRGBAlphaBitMask DD ?
ddpf_dwYUVAlphaBitMask DD ?
ends

ENDS


I might have noticed something similar for strings defined inside an PROC in an FASM project... uncertain..
Posted on 2004-06-16 17:09:00 by BogdanOntanu
Hi Bogdan

For now the only way is to use:

DDPIXELFORMAT STRUC
.
.
.
DDPIXELFORMAT ENDS

And change option from ? ends to $ ends.

KetilO
Posted on 2004-06-18 02:56:51 by KetilO