the naked keyword is an attribute - but it looks like an function when used?
dennis luehring
dl.soluz at gmx.net
Mon Feb 21 01:45:21 PST 2011
naked INSIDE of the context which is adress with the attribute - looks
very strange to me, because it changes the pro- AND epilog of an
function/codeblock
real blabla(real x)
{
asm{
naked;
mov EAX,[RSP];
naked;
add EAX,0x3fff;
naked;
}
}
wouldn't it be better to have something like
naked asm{
...
}
or
real blabla(real x) naked
{
naked asm{
}
}
or like delphi does
real blabla( x: real ) assembler
{
mov EAX,[RSP];
add EAX,0x3fff;
}
More information about the Digitalmars-d
mailing list