Does reggae declare any version when building?
MANKEYYENAME opened this issue · comments
Konstantin Menshikov commented
To do something like this:
mixin template IsotericAsmFunc(string name, string src){
version(D_Reggae){
@sm_o_file
enum Target trg = compileAsmFuncFromSrc(name, src);// o file
}
else{
mixin("extern(C) void "~name~"();") ;
}
}
Atila Neves commented
You can define arbitrary user-defined variables with -d
and then branch in the reggaefile depending on the value. Not the same thing as a version, but pretty similar.