Leon Brocard (via RT) <[EMAIL PROTECTED]> writes: > (To be honest, it would be wonderful if exceptions gave you a line > number and code too, but let's keep it simple for now).
Without varargs macros this is not really simple. (IIRC they are introduced in C99, but are in gcc for years now). This two macros were very handy when I wrote a linux kernel module for some special measurement hardware. #ifdef DEBUG #define PRINT_DEBUG(fmt, args...) \ printk (KERN_DEBUG NMS_NAME " %d: " fmt ,__LINE__ ,## args) #define PRINT_VALUE(value, type) PRINT_DEBUG (#value " = " type "\n", value); #else #define PRINT_DEBUG(args...) #define PRINT_VALUE(args...) #endif Something similar would be possible for internal_exception (depending on wether compiled with gcc or not) bye b. -- Juergen Boemmels [EMAIL PROTECTED] Fachbereich Physik Tel: ++49-(0)631-205-2817 Universitaet Kaiserslautern Fax: ++49-(0)631-205-3906 PGP Key fingerprint = 9F 56 54 3D 45 C1 32 6F 23 F6 C7 2F 85 93 DD 47