$ symbol in macro
Hi OverHertz.
in zirutils.zir there were those two macros
inline procedure FillBuffer(buf, len, _ch) {
push edi
edi = buf;
ecx = len;
al = _ch;
rep stosb
pop edi
}
inline procedure strlcpy(dest, source, len) {
push edi
push esi
push ecx
//cld
edi = $dest;
esi = $source;
ecx = $len;
shr ecx, 2
rep movsd
ecx = $len;
and ecx, 3
rep movsb
pop ecx
pop esi
pop edi
}
so i want to know when we need to use $ symbol with macro parameters like strlcpy macro,
and when we not need it like FillBuffer macro.
Emil.
http://www.freewebs.com/ogremagic/index.htm