1 ////////////////////////////////////////////////////////////////////// 2 // 3 // Pixie 4 // 5 // Copyright � 1999 - 2003, Okan Arikan 6 // 7 // Contact: okan@cs.utexas.edu 8 // 9 // This library is free software; you can redistribute it and/or 10 // modify it under the terms of the GNU Lesser General Public 11 // License as published by the Free Software Foundation; either 12 // version 2.1 of the License, or (at your option) any later version. 13 // 14 // This library is distributed in the hope that it will be useful, 15 // but WITHOUT ANY WARRANTY; without even the implied warranty of 16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 // Lesser General Public License for more details. 18 // 19 // You should have received a copy of the GNU Lesser General Public 20 // License along with this library; if not, write to the Free Software 21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 // 23 /////////////////////////////////////////////////////////////////////// 24 /////////////////////////////////////////////////////////////////////// 25 // 26 // File : error.h 27 // Classes : - 28 // Description : The error display functions 29 // 30 //////////////////////////////////////////////////////////////////////// 31 #ifndef ERROR_H 32 #define ERROR_H 33 34 #include "common/global.h" // The global header file 35 36 // Error codes for the error function (Used by sfError) 37 typedef enum { 38 CODE_NOERROR, 39 CODE_NOMEM, 40 CODE_SYSTEM, 41 CODE_NOFILE, 42 CODE_BADFILE, 43 CODE_VERSION, 44 CODE_INCAPABLE, 45 CODE_OPTIONAL, 46 CODE_UNIMPLEMENT, 47 CODE_LIMIT, 48 CODE_BUG, 49 CODE_NOTSTARTED, 50 CODE_NESTING, 51 CODE_NOTOPTIONS, 52 CODE_NOTATTRIBS, 53 CODE_NOTPRIMS, 54 CODE_ILLSTATE, 55 CODE_BADMOTION, 56 CODE_BADSOLID, 57 CODE_BADTOKEN, 58 CODE_RANGE, 59 CODE_CONSISTENCY, 60 CODE_BADHANDLE, 61 CODE_NOSHADER, 62 CODE_MISSINGDATA, 63 CODE_SYNTAX, 64 CODE_MATH, 65 CODE_LOG, 66 CODE_SCRIPT, 67 CODE_PRINTF, 68 CODE_RESOLUTION, 69 CODE_STATS, 70 CODE_PROGRESS 71 } EErrorCode; 72 73 74 void error(EErrorCode,const char *,...); 75 void warning(EErrorCode,const char *,...); 76 void fatal(EErrorCode,const char *,...); 77 void info(EErrorCode,const char *,...); 78 79 #endif 80 81