No mixin inside asm blocks

Ali Çehreli acehreli at yahoo.com
Wed Jan 30 07:01:09 PST 2013


A friend of mine is trying to figure out the D equivalent of using 
macros with asm blocks in C:

#define NEXT() __asm__("jmp *%0"::"r"((++ip)->jmp)); goto *ip->jmp

D's asm blocks are very restrictive: mixins are not allowed. What do you 
do in D?

Thank you,
Ali


More information about the Digitalmars-d-learn mailing list