F
Frank
It would be nice to have short macro names in a header file,
whilest the probability of name clashes increases. Is there a
way how to circumvent the 'normal' C-pre-processor handling
of cascaded macros, such that something like the following
would make sense?
#ifdef SHORTY
# TMP_BACKUP_OF_SHORTY (SHORTY)
#endif
#define SHORT my_nice_expression
....
using SHORTY
....
#ifdef TMP_BACKUP_OF_SHORTY
# define SHORTY TMP_BACKUP_OF_SHORTY
#endif
Best Regards
Frank
whilest the probability of name clashes increases. Is there a
way how to circumvent the 'normal' C-pre-processor handling
of cascaded macros, such that something like the following
would make sense?
#ifdef SHORTY
# TMP_BACKUP_OF_SHORTY (SHORTY)
#endif
#define SHORT my_nice_expression
....
using SHORTY
....
#ifdef TMP_BACKUP_OF_SHORTY
# define SHORTY TMP_BACKUP_OF_SHORTY
#endif
Best Regards
Frank