2005-11-08 02:02:16 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-09-05 12:39:22 +00:00
|
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@Vivier.EU>
|
2005-11-08 02:02:16 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACOS_ERRORS_H__
|
|
|
|
#define __MACOS_ERRORS_H__
|
|
|
|
|
|
|
|
#include <macos/traps.h>
|
|
|
|
|
|
|
|
enum {
|
|
|
|
noErr = 0,
|
|
|
|
qErr = -1,
|
|
|
|
vTypErr = -2,
|
|
|
|
corErr = -3,
|
|
|
|
unimpErr = -4,
|
|
|
|
SlpTypeErr = -5,
|
|
|
|
seNoDB = -8,
|
|
|
|
controlErr = -17,
|
|
|
|
statusErr = -18,
|
|
|
|
readErr = -19,
|
|
|
|
writErr = -20,
|
|
|
|
badUnitErr = -21,
|
|
|
|
unitEmptyErr = -22,
|
|
|
|
openErr = -23,
|
|
|
|
closErr = -24,
|
|
|
|
dRemovErr = -25,
|
|
|
|
dInstErr = -26,
|
|
|
|
paramErr = -50,
|
|
|
|
userCanceledErr = -128,
|
|
|
|
noHardwareErr = -200,
|
|
|
|
notEnoughHardwareErr = -201,
|
|
|
|
smNoMoresRsrcs = -344,
|
|
|
|
};
|
|
|
|
|
2006-12-29 20:27:15 +00:00
|
|
|
#ifdef __mc68000__
|
2005-11-08 02:02:16 +00:00
|
|
|
static inline void SysError(short errorCode)
|
|
|
|
{
|
2014-05-09 00:38:54 +00:00
|
|
|
asm("move.w %0, %%d0\n"
|
2005-11-08 02:02:16 +00:00
|
|
|
Trap(_SysError)
|
|
|
|
:: "g" (errorCode) : "%%d0", UNPRESERVED_REGS);
|
|
|
|
}
|
2006-12-29 20:27:15 +00:00
|
|
|
#endif /* __mc68000__ */
|
2005-11-08 02:02:16 +00:00
|
|
|
#endif /* __MACOS_ERRORS_H__ */
|