When using "rep(i, a, b)" how to do "for(;;)"

Revision en1, by Qualified, 2020-06-06 05:22:04

When I'm using:

#define rep(i, a, b) for(int i = a; i < b; i++)
#define per(i, a, b) for(int i = a; i >= b; i--)

how do I do

for(;;)

with the

rep(i, a, b)
per(i, a, b)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Qualified 2020-06-06 05:22:04 286 Initial revision (published)