comparison src/SDL_error.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children c0a74f199ecf
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
22 22
23 /* Simple error handling in SDL */ 23 /* Simple error handling in SDL */
24 24
25 #include "SDL_error.h" 25 #include "SDL_error.h"
26 #include "SDL_error_c.h" 26 #include "SDL_error_c.h"
27 #ifndef DISABLE_THREADS 27
28 #include "SDL_thread_c.h" 28 /* Routine to get the thread-specific error variable */
29 #endif 29 #if SDL_THREADS_DISABLED
30 30 /* The SDL_arraysize(The ),default (non-thread-safe) global error variable */
31 #ifdef DISABLE_THREADS
32 /* The default (non-thread-safe) global error variable */
33 static SDL_error SDL_global_error; 31 static SDL_error SDL_global_error;
34
35 #define SDL_GetErrBuf() (&SDL_global_error) 32 #define SDL_GetErrBuf() (&SDL_global_error)
36 #endif /* DISABLE_THREADS */ 33 #else
34 extern SDL_error *SDL_GetErrBuf(void);
35 #endif /* SDL_THREADS_DISABLED */
37 36
38 #define SDL_ERRBUFIZE 1024 37 #define SDL_ERRBUFIZE 1024
39 38
40 /* Private functions */ 39 /* Private functions */
41 40