This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
probotic/include/error.h

15 lines
286 B
C

#ifndef ERROR_H_
#include <stdio.h>
#define ERR(ret,msg) do { fputs(msg "\n", stderr); return (ret); } while (0)
#define ERRMSG(msg) fputs(msg "\n", stderr)
#define PERROR(name) perror(name)
#define DB_ERROR 100
#define IRC_ERROR 200
#define CREDS_ERROR 300
#define ERROR_H_
#endif