-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathloop.h
More file actions
41 lines (38 loc) · 768 Bytes
/
loop.h
File metadata and controls
41 lines (38 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#if(LOOP_END > LOOP_MAX)
#error Loop Counter Too Big
#endif
MACRO(LOOP_START)
#if(LOOP_START == 0)
#undef LOOP_START
#define LOOP_START 1
#elif(LOOP_START == 1)
#undef LOOP_START
#define LOOP_START 2
#elif(LOOP_START == 2)
#undef LOOP_START
#define LOOP_START 3
#elif(LOOP_START == 3)
#undef LOOP_START
#define LOOP_START 4
#elif(LOOP_START == 4)
#undef LOOP_START
#define LOOP_START 5
#elif(LOOP_START == 5)
#undef LOOP_START
#define LOOP_START 6
#elif(LOOP_START == 6)
#undef LOOP_START
#define LOOP_START 7
#elif(LOOP_START == 7)
#undef LOOP_START
#define LOOP_START 8
#elif(LOOP_START == 8)
#undef LOOP_START
#define LOOP_START 9
#elif(LOOP_START == 9)
#undef LOOP_START
#define LOOP_START 10
#endif
#if(LOOP_START < LOOP_END)
#include "loop.h"
#endif