pike.git/
src/
errors.h
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-20
2001-08-20 16:41:31 by Martin Stjernholm <mast@lysator.liu.se>
f93ed40698d5a4584a08155814a3b4d2e1901795 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a warning.
Rev: src/errors.h:1.19
1:
-
#define EMPTY
-
+
#ifdef ERR_DECLARE #define DECLARE_ERROR(NAME, INHERIT, DECL) \ PMOD_EXPORT struct program *PIKE_CONCAT(NAME,_error_program); \
19:
#define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ; /* Some compilers (eg cl) don't like empty structs... */
-
#undef EMPTY
+
#define EMPTY ERR_VAR(INT_TYPE, int, PIKE_T_INT, ignored__) #endif /* ERR_EXT_DECLARE */
43:
map_variable("__" #NAME2, #CTYPE, 0, \ current_offset + (((char *)&(foo.NAME2))-((char *)&foo)), RUNTYPE);
+
#define EMPTY
+
#define ERR_INHERIT(NAME) \ low_inherit(PIKE_CONCAT(NAME,_error_program),0,0,0,0,0);
120:
#undef DECLARE_ERROR #undef ERR_INHERIT #undef ERR_VAR
+
#undef EMPTY
#undef ERR_FUNC #undef ERR_DECLARE #undef ERR_EXT_DECLARE #undef ERR_SETUP #undef ERR_CLEANUP