Skip to content
Snippets Groups Projects
Commit 74988f22 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

patch to work with MSVC++

Rev: src/errors.h:1.5
parent dc731d3e
No related branches found
No related tags found
No related merge requests found
#define EMPTY
#ifdef ERR_DECLARE #ifdef ERR_DECLARE
#define DECLARE_ERROR(NAME, INHERIT, DECL) \ #define DECLARE_ERROR(NAME, INHERIT, DECL) \
...@@ -57,7 +58,7 @@ struct PIKE_CONCAT(NAME,_error_struct) { \ ...@@ -57,7 +58,7 @@ struct PIKE_CONCAT(NAME,_error_struct) { \
#define ERR_FUNC(NAME,FUNC,TYPE,FLAGS) #define ERR_FUNC(NAME,FUNC,TYPE,FLAGS)
#endif #endif
DECLARE_ERROR(generic, /* no inherit */ , DECLARE_ERROR(generic, EMPTY ,
ERR_VAR(struct pike_string *,string,T_STRING,desc) ERR_VAR(struct pike_string *,string,T_STRING,desc)
ERR_VAR(struct array *,array,T_ARRAY,backtrace) ERR_VAR(struct array *,array,T_ARRAY,backtrace)
ERR_FUNC("cast",f_error_cast,tFunc(tString,tMixed),0) ERR_FUNC("cast",f_error_cast,tFunc(tString,tMixed),0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment