include/SDL_error.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1361 19418e4422cb
child 1668 4da1ee79c9af
     1.1 --- a/include/SDL_error.h	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/include/SDL_error.h	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -20,7 +20,10 @@
     1.4      slouken@libsdl.org
     1.5  */
     1.6  
     1.7 -/* Simple error message routines for SDL */
     1.8 +/**
     1.9 + * \file SDL_error.h
    1.10 + * Simple error message routines for SDL
    1.11 + */
    1.12  
    1.13  #ifndef _SDL_error_h
    1.14  #define _SDL_error_h
    1.15 @@ -30,32 +33,39 @@
    1.16  #include "begin_code.h"
    1.17  /* Set up for C function definitions, even when using C++ */
    1.18  #ifdef __cplusplus
    1.19 +/* *INDENT-OFF* */
    1.20  extern "C" {
    1.21 +/* *INDENT-ON* */
    1.22  #endif
    1.23  
    1.24  /* Public functions */
    1.25 -extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...);
    1.26 -extern DECLSPEC char * SDLCALL SDL_GetError(void);
    1.27 -extern DECLSPEC void SDLCALL SDL_ClearError(void);
    1.28 +extern DECLSPEC void SDLCALL SDL_SetError (const char *fmt, ...);
    1.29 +extern DECLSPEC char *SDLCALL SDL_GetError (void);
    1.30 +extern DECLSPEC void SDLCALL SDL_ClearError (void);
    1.31  
    1.32  /* Private error message function - used internally */
    1.33  #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    1.34  #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
    1.35 -typedef enum {
    1.36 -	SDL_ENOMEM,
    1.37 -	SDL_EFREAD,
    1.38 -	SDL_EFWRITE,
    1.39 -	SDL_EFSEEK,
    1.40 -	SDL_UNSUPPORTED,
    1.41 -	SDL_LASTERROR
    1.42 +typedef enum
    1.43 +{
    1.44 +    SDL_ENOMEM,
    1.45 +    SDL_EFREAD,
    1.46 +    SDL_EFWRITE,
    1.47 +    SDL_EFSEEK,
    1.48 +    SDL_UNSUPPORTED,
    1.49 +    SDL_LASTERROR
    1.50  } SDL_errorcode;
    1.51 -extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    1.52 +extern DECLSPEC void SDLCALL SDL_Error (SDL_errorcode code);
    1.53  
    1.54  
    1.55  /* Ends C function definitions when using C++ */
    1.56  #ifdef __cplusplus
    1.57 +/* *INDENT-OFF* */
    1.58  }
    1.59 +/* *INDENT-ON* */
    1.60  #endif
    1.61  #include "close_code.h"
    1.62  
    1.63  #endif /* _SDL_error_h */
    1.64 +
    1.65 +/* vi: set ts=4 sw=4 expandtab: */