fork download
  1. #include <cstdint>
  2.  
  3. #define MAGIC_NUMBER_VAL 7076;
  4.  
  5. #define convert_func(NUM) hexify(NUM)
  6. #define hexify(NUM) 0x ## NUM
  7.  
  8. static const uint16_t val = convert_func(MAGIC_NUMBER_VAL); //0x7076
  9. static const uint16_t val_tag = MAGIC_NUMBER_VAL;
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty