include/SDL_error.h
changeset 1895 c121d94672cb
parent 1361 19418e4422cb
child 2859 99210400e8b9
     1.1 --- a/include/SDL_error.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/include/SDL_error.h	Mon Jul 10 21:04:37 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 char *SDLCALL SDL_GetError(void);
    1.28  extern DECLSPEC void SDLCALL SDL_ClearError(void);
    1.29  
    1.30  /* Private error message function - used internally */
    1.31  #define SDL_OutOfMemory()	SDL_Error(SDL_ENOMEM)
    1.32  #define SDL_Unsupported()	SDL_Error(SDL_UNSUPPORTED)
    1.33 -typedef enum {
    1.34 -	SDL_ENOMEM,
    1.35 -	SDL_EFREAD,
    1.36 -	SDL_EFWRITE,
    1.37 -	SDL_EFSEEK,
    1.38 -	SDL_UNSUPPORTED,
    1.39 -	SDL_LASTERROR
    1.40 +typedef enum
    1.41 +{
    1.42 +    SDL_ENOMEM,
    1.43 +    SDL_EFREAD,
    1.44 +    SDL_EFWRITE,
    1.45 +    SDL_EFSEEK,
    1.46 +    SDL_UNSUPPORTED,
    1.47 +    SDL_LASTERROR
    1.48  } SDL_errorcode;
    1.49  extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code);
    1.50  
    1.51  
    1.52  /* Ends C function definitions when using C++ */
    1.53  #ifdef __cplusplus
    1.54 +/* *INDENT-OFF* */
    1.55  }
    1.56 +/* *INDENT-ON* */
    1.57  #endif
    1.58  #include "close_code.h"
    1.59  
    1.60  #endif /* _SDL_error_h */
    1.61 +
    1.62 +/* vi: set ts=4 sw=4 expandtab: */