fork download
  1.  
  2. // Define constants
  3. #define EXAMPLE_DEF(type,name,value) static const type name = value;
  4. #include "my_trick_file.h"
  5.  
  6. // Make the function that converts the name to a value
  7. int NameToValue(const char *name)
  8. {
  9. #define EXAMPLE_DEF(type,n,value) if (!strcmp(n, name)) return value;
  10. #include "my_trick_file.h"
  11. else return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:27: fatal error: my_trick_file.h: No such file or directory
compilation terminated.
stdout
Standard output is empty