Probiotics (in bot form) for programming.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

16 line
395B

  1. #define ERR(ret,msg) \
  2. do { fputs(PROGN ": " msg "\n", stderr); return (ret); } while (0)
  3. #define ERRFMT(ret,fmt,...) \
  4. do { fprintf(stderr, PROGN ": " fmt "\n", __VA_ARGS__); return (ret); } while (0)
  5. #define PERROR(ret) \
  6. do { perror(PROGN); return (ret); } while (0)
  7. #define ERRMSG(msg) \
  8. fputs(msg "\n", stderr)
  9. #define DB_ERROR 100
  10. #define IRC_ERROR 101
  11. #define CREDS_ERROR 102