20 lines
327 B
C
20 lines
327 B
C
#ifndef _MSPH_ERR_H
|
|
#define _MSPH_ERR_H
|
|
|
|
#ifdef SPHO_DEBUG
|
|
// #define SPHO_ENABLE_DEBUG_PRINT
|
|
#endif
|
|
|
|
#include "spho/err.h"
|
|
|
|
|
|
#define MSPH_ERR_SYS 0x0001
|
|
|
|
#define MSPH_ERR_INVAL 0x1001
|
|
|
|
#define MSPH_ERR_TOOLONG 0x2001
|
|
|
|
#define MSPH_ERR(ctx, e) SPHO_ERR(ctx, e)
|
|
#define MSPH_TOKS_ERR(toks, e) MSPH_ERR((toks)->ctx, e)
|
|
|
|
#endif
|