在C++编写代码我会写 bool positive (int a)
{
#ifdef DEBUG
cout << "Checking the number " << a << "\n";
#endif
return a > 0;
}
在OCaml中我可以写 let positive x =
begin
printf "Checking the
我有%rep预处理器指令,它会创建一个预处理器循环。 我想在其中声明标签,可能有一些连接,但我无法获得正确的语法。 %assign i 0
%rep 64
label_%i: ;this, of course, doesn't work
inc rax
%assign i i+1
%endrep
那么如何强制NASM预处理器生成label_i为每个“迭代”?