Skip to content

Commit

Permalink
Change loop macro to num
Browse files Browse the repository at this point in the history
  • Loading branch information
aarikpokras authored Dec 16, 2024
1 parent 8ffb661 commit 054154f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/io.cxlbund/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -92,6 +91,8 @@ struct num {
}
};

#define loop(x) for (num i = 0; i < x; i++)

template <typename T>
void printi(num<T> i) {
std::cout << i.c;
Expand Down

0 comments on commit 054154f

Please sign in to comment.