lexing up and running
This commit is contained in:
parent
10e16147ba
commit
b9266cdf96
6 changed files with 434 additions and 102 deletions
20
include/msph/err.h
Normal file
20
include/msph/err.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue