2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2004 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 /* This file defines a structure that carries language-independent
32 #ifndef _SDL_error_c_h
33 #define _SDL_error_c_h
35 #define ERR_MAX_STRLEN 128
36 #define ERR_MAX_ARGS 5
38 typedef struct SDL_error {
39 /* This is a numeric value corresponding to the current error */
42 /* This is a key used to index into a language hashtable containing
43 internationalized versions of the SDL error messages. If the key
44 is not in the hashtable, or no hashtable is available, the key is
45 used directly as an error message format string.
47 unsigned char key[ERR_MAX_STRLEN];
49 /* These are the arguments for the error functions */
53 #if 0 /* What is a character anyway? (UNICODE issues) */
54 unsigned char value_c;
58 unsigned char buf[ERR_MAX_STRLEN];
62 #endif /* _SDL_error_c_h */