TweeZcodeCompiler / twee_zcode_compiler

compiler project at FU Berlin
MIT License
3 stars 0 forks source link

extended routine-generator for locale variables #53

Closed ottne closed 9 years ago

ottne commented 9 years ago

Example usage:

assgen.addRoutine("main",
    vector<ZRoutineArgument>{ZRoutineArgument("var1"), ZRoutineArgument("var2", "3")});

generates:

.FUNCT main var1,var2=3

You can still use without arguments:

assgen.addRoutine("main");
tobiasschuelke commented 9 years ago

Simplified expression if(!((it != args.end()) && (it + 1 == args.end()))) {

to if(it + 1 != args.end()) {

tobiasschuelke commented 9 years ago

pre increment iterator it in loop for better performance