version.c 239 B

1234567891011
  1. #ifndef VERSION
  2. #error "VERSION not defined!"
  3. #endif
  4. /* Transform VERSION macro into C string */
  5. #define ___MACROSTR(x) #x
  6. #define __MACROSTR(x) ___MACROSTR(x)
  7. #define _VERSION __MACROSTR(VERSION)
  8. const char sprog_version[] = _VERSION;