00001 // LICENSE: (Please see the file COPYING for details) 00002 // 00003 // NUS - Nemesis Utilities System: A C++ application development framework 00004 // Copyright (C) 2006, 2007 Otavio Rodolfo Piske 00005 // 00006 // This file is part of NUS 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Lesser General Public 00010 // License as published by the Free Software Foundation version 2.1 00011 // of the License. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Lesser General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Lesser General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 // 00022 #ifndef ERRDEFS_H 00023 #define ERRDEFS_H 00024 00025 #if defined(NLIB_SHARED) && defined(WIN32) 00026 # define DllDeclSpec __declspec( dllexport ) 00027 #else 00028 # if !defined(NLIB_SHARED) && defined(WIN32) 00029 # define DllDeclSpec __declspec( dllimport ) 00030 # else 00031 # define DllDeclSpec 00032 # endif // defined(EXAMPLE) && defined(WIN32) 00033 #endif // !defined(NLIB_SHARED) && defined(WIN32) 00034 00035 #include <errno.h> 00036 00037 #define N_FILENOTFOUND "File not found" 00038 #define N_ENOMEM "Not enough memory" 00039 #define N_NULL "Null pointer given" 00040 #define N_OUTOFBOUNDS "Out of bounds exception" 00041 00042 00047 DllDeclSpec const char *nerror(int code); 00048 00049 #endif // ERRDEFS_H