Converting C/C++ Code to D (#define extern)
Serg Kovrov
kovrov at no.spam
Tue Sep 26 02:15:16 PDT 2006
Serg Kovrov wrote:
> do
> {
> PieceList(pos, to) = PieceList(pos,from);
> PrevPiece(pos, NextPiece(pos, to)) = to;
> NextPiece(pos, PrevPiece(pos, to)) = to;
> }
> while(0);
> Although later is somewhat suspicious - how loop meant to break?.
> Perhaps there is another macro called as function, that has a break
> statement. You could investigate what exactly it should do and rewrite
> it more clear.
How stupid of me =)
> do {...} while(0);
will be called exactly one time, but it has no sense to me either...
--
serg.
More information about the Digitalmars-d-learn
mailing list