#ifndef __ERRORF_H__
#define __ERRORF_H__ 1

#include <stdio.h>

extern int fatalf(char *s, ...);
extern int errorf(char *s, ...);
extern int warnf(char *s, ...);
extern int debugf(char *s, ...);
extern char *strdupf(char *s, ...);
extern int nulllike(void *icode);
extern void *notnull(void *p, char *ps, char *f, int l);

//#define NOTNULL(icode) (icode)
#define NOTNULL(icode) ((IMPAST *)notnull(icode, #icode, __FILE__, __LINE__))

#endif // ! __ERRORF_H__
