From 054154f6db5df4cdee32f7c947acb46b7238cff7 Mon Sep 17 00:00:00 2001 From: Aarik Pokras <85502246+aarikpokras@users.noreply.github.com> Date: Sun, 15 Dec 2024 21:03:49 -0500 Subject: [PATCH] Change `loop` macro to `num` --- lib/io.cxlbund/io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/io.cxlbund/io.h b/lib/io.cxlbund/io.h index cb9ceef..f7797af 100644 --- a/lib/io.cxlbund/io.h +++ b/lib/io.cxlbund/io.h @@ -6,7 +6,6 @@ #define begin { #define end } #define argit for (int i = 0; i < argc; i++) -#define loop(x) for (int i = 0; i < x; i++) #define exitwith return #pragma once void print(std::string s); @@ -92,6 +91,8 @@ struct num { } }; +#define loop(x) for (num i = 0; i < x; i++) + template void printi(num i) { std::cout << i.c;