I recently tried to create a global header file which would have all definitions of error codes (i.e. NO_ERROR, SDL_SCREEN_FLIP_ERROR, etc.) these would just be integers whi
You could simply use an enum:
globals.h:
enum { SCREEN_LOAD_ERROR = 1, NO_ERROR = 0, // ... }