wxCHECK and semicolon required
Grzegorz Adam Hankiewicz
ghankiewicz at rastertech.es
Tue Apr 3 04:46:11 PDT 2007
H wrote:
> Is it really necessary that wxCHECK needs a semicolon? With the
> current implementation the following statements or similar ones are
> impossible:
>
> if (!(String.IsEmpty())) wxCHECK(String.ToULong(&Number),false); else
> Number = 0;
The macro could use a do { }while(0) block
http://kernelnewbies.org/FAQ/DoWhile0
--
Rastertech España S.A.
Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/
C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889
ghankiewicz at rastertech.es *·* www.rastertech.es
<http://www.rastertech.es/>
More information about the wx-users
mailing list