H_join Error
Hi
i have made a simple macro to make thing is more easy , but got access violation
here is the macro
function H_strcat(Dword dst,src)
{
Eax = dst;
Edx = src;
push Eax;
while (byte [Eax] != 0) { Eax++; }
while (byte [Edx] != 0)
{
BL = [Edx];
[Eax] = BL;
Edx++; Eax++;
}
[Eax] = 0;
pop Eax;
}
inline procedure H_join(;)
{
$temp = 1;
$repeat $argc:
H_strcat($arg[0],$arg[$temp]);
$temp++;
$end
}
and here is the calling that make the error
H_join(@buf,eax,' ',@var,';');
any help please?
http://www.freewebs.com/ogremagic/index.htm