forked from debdattabasu/pp_Iteration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop1.h
74 lines (71 loc) · 2.3 KB
/
loop1.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#if((LOOP_END) > LOOP_MAX)
#error Loop Counter Too Big
#endif
#if(LOOP_START < (LOOP_END))
MACRO(LOOP_START)
#if((LOOP_START % 10) == 0)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 1)
#elif((LOOP_START % 10) == 1)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 2)
#elif((LOOP_START % 10) == 2)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 3)
#elif((LOOP_START % 10) == 3)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 4)
#elif((LOOP_START % 10) == 4)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 5)
#elif((LOOP_START % 10) == 5)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 6)
#elif((LOOP_START % 10) == 6)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 7)
#elif((LOOP_START % 10) == 7)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 8)
#elif((LOOP_START % 10) == 8)
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 9)
#elif((LOOP_START % 10) == 9)
#if((LOOP_START / 10) == 0 )
#undef LOOP_START10
#define LOOP_START10 1
#elif((LOOP_START / 10) == 1)
#undef LOOP_START10
#define LOOP_START10 2
#elif((LOOP_START / 10) == 2)
#undef LOOP_START10
#define LOOP_START10 3
#elif((LOOP_START / 10) == 3)
#undef LOOP_START10
#define LOOP_START10 4
#elif((LOOP_START / 10) == 4)
#undef LOOP_START10
#define LOOP_START10 5
#elif((LOOP_START / 10) == 5)
#undef LOOP_START10
#define LOOP_START10 6
#elif((LOOP_START / 10) == 6)
#undef LOOP_START10
#define LOOP_START10 7
#elif((LOOP_START / 10) == 7)
#undef LOOP_START10
#define LOOP_START10 8
#elif((LOOP_START / 10) == 8)
#undef LOOP_START10
#define LOOP_START10 9
#elif((LOOP_START / 10) == 9)
#undef LOOP_START10
#define LOOP_START10 10
#endif
#undef LOOP_START
#define LOOP_START JOIN(LOOP_START10, 0)
#endif
#if((LOOP_START % 10) != 0)
#include "loop1.h"
#endif
#endif