atilaneves / reggae

Build system in D, Python, Ruby, Javascript or Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does reggae declare any version when building?

MANKEYYENAME opened this issue · comments

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~"();") ;
  } 
}

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.