How can i define such a macro in spin?

后端 未结 0 571
無奈伤痛
無奈伤痛 2021-01-06 14:15

I wrote the following model:

#define inc(sn)if :: sn < 255 -> sn = sn + 1; ::else -> sn = 1; fi;
#define inc_twice(sn) if :: sn+2 >255 -> sn= s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题