Main Page | Class List | Directories | File List | Class Members | File Members

errors.h File Reference

Go to the source code of this file.

Defines

#define DECLARE_ERROR(NAME, SCNAME, INHERIT, DECL)
#define ERR_VAR(TYPE, CTYPE, RUNTYPE, NAME2)
#define EMPTY
#define ERR_INHERIT(NAME)   low_inherit(PIKE_CONCAT(NAME,_error_program),0,0,0,0,0);
#define ERR_FUNC(NAME, FUNC, TYPE, FLAGS)   ADD_FUNCTION(NAME,FUNC,TYPE,FLAGS);
#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)
#define DECLARE_ERROR(NAME, SCNAME, INHERIT, DECL)
#define ERR_INHERIT(NAME)
#define ERR_VAR(TYPE, CTYPE, RUNTYPE, NAME)
#define ERR_FUNC(NAME, FUNC, TYPE, FLAGS)
#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)
#define ERR_INHERIT(NAME)
#define ERR_VAR(TYPE, CTYPE, RUNTYPE, NAME)
#define ERR_FUNC(NAME, FUNC, TYPE, FLAGS)
#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)

Functions

 DECLARE_ERROR (generic, Generic, EMPTY, ERR_FUNC("cast", f_error_cast, tFunc(tString, tArray), ID_STATIC) ERR_FUNC("`[]", f_error_index, tFunc(tInt01, tMixed), ID_STATIC) ERR_FUNC("describe", f_error_describe, tFunc(tVoid, tString), 0) ERR_FUNC("message", f_error_message, tFunc(tVoid, tString), 0) ERR_FUNC("backtrace", f_error_backtrace, tFunc(tVoid, tArr(tMixed)), 0) ERR_FUNC("_sprintf", f_error__sprintf, tFunc(tOr(tInt, tVoid) tOr(tMapping, tVoid), tString), ID_STATIC) ERR_FUNC("create", f_error_create, tFunc(tStr tOr(tVoid, tArr(tMixed)), tVoid), ID_STATIC)) DECLARE_ERROR(index
 ERR_INHERIT (generic)
 DECLARE_ERROR (bad_argument, BadArgument, ERR_INHERIT(generic),) DECLARE_ERROR(math
 DECLARE_ERROR (resource, Resource, ERR_INHERIT(generic),) DECLARE_ERROR(permission
 DECLARE_ERROR (cpp, Cpp, ERR_INHERIT(generic), EMPTY) DECLARE_ERROR(compilation
EMPTY DECLARE_ERROR (master_load, MasterLoad, ERR_INHERIT(generic), EMPTY) DECLARE_ERROR(module_load

Variables

 Index
 Math
 Permission
 Compilation
EMPTY ModuleLoad


Define Documentation

#define DECLARE_ERROR NAME,
SCNAME,
INHERIT,
DECL   ) 
 

Value:

if(PIKE_CONCAT(NAME,_error_program)) {\
    free_program(PIKE_CONCAT(NAME,_error_program)); \
    PIKE_CONCAT(NAME,_error_program)=0;\
  }

#define DECLARE_ERROR NAME,
SCNAME,
INHERIT,
DECL   ) 
 

Value:

do{\
  ptrdiff_t current_offset=0; \
  struct PIKE_CONCAT(NAME,_error_struct) foo; \
  start_new_program(); \
  INHERIT \
  current_offset = PIKE_CONCAT(NAME,_error_offset) = \
    ADD_STORAGE(struct PIKE_CONCAT(NAME,_error_struct));\
  add_string_constant("error_type", #SCNAME, 0); \
  add_integer_constant("is_" #NAME "_error",1,0); \
  DECL \
  PIKE_CONCAT(NAME,_error_program)=end_program(); \
  add_program_constant( #SCNAME "Error",PIKE_CONCAT(NAME,_error_program),0); \
}while(0);

#define EMPTY
 

#define ERR_FUNC NAME,
FUNC,
TYPE,
FLAGS   ) 
 

#define ERR_FUNC NAME,
FUNC,
TYPE,
FLAGS   ) 
 

#define ERR_FUNC NAME,
FUNC,
TYPE,
FLAGS   )     ADD_FUNCTION(NAME,FUNC,TYPE,FLAGS);
 

#define ERR_INHERIT NAME   ) 
 

#define ERR_INHERIT NAME   ) 
 

#define ERR_INHERIT NAME   )     low_inherit(PIKE_CONCAT(NAME,_error_program),0,0,0,0,0);
 

#define ERR_VAR TYPE,
CTYPE,
RUNTYPE,
NAME   ) 
 

#define ERR_VAR TYPE,
CTYPE,
RUNTYPE,
NAME   ) 
 

#define ERR_VAR TYPE,
CTYPE,
RUNTYPE,
NAME2   ) 
 

Value:

MAP_VARIABLE(#NAME2, CTYPE, 0, \
               current_offset + (((char *)&(foo.NAME2))-((char *)&foo)), RUNTYPE);

#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)
 

#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)
 

#define GENERIC_ERROR_THIS   ((struct generic_error_struct *)CURRENT_STORAGE)
 


Function Documentation

EMPTY DECLARE_ERROR master_load  ,
MasterLoad  ,
ERR_INHERIT(generic)  ,
EMPTY 
 

DECLARE_ERROR cpp  ,
Cpp  ,
ERR_INHERIT(generic)  ,
EMPTY 
 

DECLARE_ERROR resource  ,
Resource  ,
ERR_INHERIT(generic) 
 

DECLARE_ERROR bad_argument  ,
BadArgument  ,
ERR_INHERIT(generic) 
 

DECLARE_ERROR generic  ,
Generic  ,
EMPTY  ,
ERR_FUNC("cast", f_error_cast, tFunc(tString, tArray), ID_STATIC) ERR_FUNC("`[]", f_error_index, tFunc(tInt01, tMixed), ID_STATIC) ERR_FUNC("describe", f_error_describe, tFunc(tVoid, tString), 0) ERR_FUNC("message", f_error_message, tFunc(tVoid, tString), 0) ERR_FUNC("backtrace", f_error_backtrace, tFunc(tVoid, tArr(tMixed)), 0) ERR_FUNC("_sprintf", f_error__sprintf,tFunc(tOr(tInt, tVoid) tOr(tMapping, tVoid), tString), ID_STATIC) ERR_FUNC("create", f_error_create, tFunc(tStr tOr(tVoid, tArr(tMixed)), tVoid), ID_STATIC) 
 

EMPTY ERR_INHERIT generic   ) 
 


Variable Documentation

Compilation
 

Index
 

Math
 

EMPTY ModuleLoad
 

Permission
 


Generated on Fri Jul 22 23:44:28 2005 for Pike by  doxygen 1.3.9.1