Enable comments in the generated code
@@ -193,11 +193,9 @@ public final class OCLAssembler extends Assembler {
final OCLAssembler asm = crb.getAssembler();
if (prefix) {
emitOpcode(asm);
- asm.emitValueOrOp(
- crb, x);
+ asm.emitValueOrOp(crb, x);
} else {
- asm.emitValueOrOp(
- crb, x);
+ asm.emitValueOrOp(crb, x);
emitOpcode(asm);
}
}
@@ -901,6 +899,11 @@ public final class OCLAssembler extends Assembler {
}
}
+ public void comment(String comment) {
+ emit(" /* " + comment + " */ ");
+ eol();
+ }
+
public void loopBreak() {
emit(OCLAssemblerConstants.BREAK);
}
