Thread Stringification: im Gnu C Präprozessor (12 answers)
Opened by betterworld at 2003-11-15 22:32

betterworld
 2003-11-15 23:09
#11567 #11567
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
[quote=esskar,15.11.2003, 21:54]
Code: (dl )
1
2
3
4
5
6
7
#define ERROR_RECURSION(n) \
do { if (n) \
   fprintf (stderr, "Too many recursions (" #n ")\n"); \
   exit(0);} \
while (0)

if(rec > MAX_RECURSIONS) ERROR_RECURSION(MAX_RECURSIONS);
[/quote]
Sorry, funktioniert doch nicht. Das ist genau dasselbe Problem:
Ausgabe ist: Too many recursions (MAX_RECURSIONS)

View full thread Stringification: im Gnu C Präprozessor