pike.git / src / errors.h

version» Context lines:

pike.git/src/errors.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: errors.h,v 1.33 2006/07/05 19:24:18 mast Exp $ + || $Id: errors.h,v 1.34 2006/07/05 20:24:53 mast Exp $   */      #ifdef ERR_DECLARE   #define DECLARE_ERROR(NAME, SCNAME, INHERIT, DECL) \   PMOD_EXPORT struct program *PIKE_CONCAT(NAME,_error_program); \   ptrdiff_t PIKE_CONCAT(NAME,_error_offset);      #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ;   #endif   
pike.git/src/errors.h:41:    DECL \    PIKE_CONCAT(NAME,_error_program)=end_program(); \    add_program_constant( #SCNAME "Error",PIKE_CONCAT(NAME,_error_program),0); \   }while(0);      #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME2) \    MAP_VARIABLE(#NAME2, CTYPE, 0, \    current_offset + (((char *)&(foo.NAME2))-((char *)&foo)), RUNTYPE);      /* Reference foo just to avoid warning. */ - #define EMPTY &foo; + #define EMPTY (void) &foo;      #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);      #endif      #ifdef ERR_CLEANUP