rmac/error.h

31 lines
697 B
C
Raw Normal View History

2011-12-27 00:50:27 +02:00
//
// RMAC - Renamed Macro Assembler for all Atari computers
2011-12-27 00:50:27 +02:00
// ERROR.H - Error Handling
// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends
2011-12-27 00:50:27 +02:00
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
// Source utilised with the kind permission of Landon Dyer
2011-12-27 00:50:27 +02:00
//
#ifndef __ERROR_H__
#define __ERROR_H__
#include "rmac.h"
#define EBUFSIZ 256 // Max size of an error message
2011-12-27 00:50:27 +02:00
// Exported variables
2011-12-27 00:50:27 +02:00
extern int errcnt;
2012-01-18 04:06:46 +02:00
extern char * err_fname;
2011-12-27 00:50:27 +02:00
// Exported functions
int error(const char *, ...);
int warn(const char *, ...);
int fatal(const char *);
2011-12-27 00:50:27 +02:00
int interror(int);
void CantCreateFile(const char *);
2011-12-27 00:50:27 +02:00
void err_setup(void);
int ErrorIfNotAtEOL(void);
2011-12-27 00:50:27 +02:00
#endif // __ERROR_H__