/* vim: ts=4 sw=4 sts=4 ff=unix fenc=utf-8 : * ===================================================================== * sc_error.h * Copyright (c) 2003 - 2011 sys0tem * LICENSE : * LGPL (GNU Lesser General Public License - Version 3,29 June 2007) * http://www.gnu.org/copyleft/lesser.html * or * EPL (Eclipse Public License - v1.0) * http://www.eclipse.org/legal/epl-v10.html * ===================================================================== */ #ifndef __SC_ERROR_H__ #define __SC_ERROR_H__ #include <stddef.h> #include <sc_os.h> #include <sc_stdbool.h> #if (SC_isWindows) #include <sc_error_win.h> #else #include <sc_error_posix.h> #endif /* SC_isWindows */ #ifdef __cplusplus extern "C" { #endif int SC_getError(void); void SC_setError(int errnum); bool SC_getErrorMessage(int errnum, char* buf, size_t buflen); #ifdef __cplusplus } #endif #endif /* __SC_ERROR_H__ */