zenilib
0.5.3.0
|
Go to the source code of this file.
Functions | |
DECLSPEC void SDLCALL | SDL_ClearError (void) |
DECLSPEC const char *SDLCALL | SDL_GetError (void) |
DECLSPEC int SDLCALL | SDL_SetError (const char *fmt,...) |
Internal error functions | |
#define | SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) |
#define | SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) |
#define | SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) |
enum | SDL_errorcode { SDL_ENOMEM, SDL_EFREAD, SDL_EFWRITE, SDL_EFSEEK, SDL_UNSUPPORTED, SDL_LASTERROR } |
DECLSPEC int SDLCALL | SDL_Error (SDL_errorcode code) |
Simple error message routines for SDL.
Definition in file SDL_error.h.
#define SDL_InvalidParamError | ( | param | ) | SDL_SetError("Parameter '%s' is invalid", (param)) |
Definition at line 54 of file SDL_error.h.
Referenced by SDL_AddHintCallback(), SDL_AllocFormat(), SDL_AllocPalette(), SDL_BuildAudioCVT(), SDL_CalculateGammaRamp(), SDL_ConvertPixels(), SDL_EnclosePoints(), SDL_FreeFormat(), SDL_FreePalette(), SDL_GetKeyFromScancode(), SDL_GetScancodeFromName(), SDL_GetScancodeName(), SDL_GetSpanEnclosingRect(), SDL_GetWindowData(), SDL_GetWindowDisplayMode(), SDL_HasIntersection(), SDL_IntersectRect(), SDL_IntersectRectAndLine(), SDL_RWFromConstMem(), SDL_RWFromMem(), SDL_SetColorKey(), SDL_SetWindowData(), SDL_SetWindowMaximumSize(), SDL_SetWindowMinimumSize(), SDL_SetWindowSize(), SDL_ShowMessageBox(), SDL_TLSSet(), SDL_UnionRect(), SDL_UpdateTexture(), SDL_UpdateYUVTexture(), SDLTest_RandomAsciiStringOfSize(), and SDLTest_RandomAsciiStringWithMaximumLength().
#define SDL_OutOfMemory | ( | ) | SDL_Error(SDL_ENOMEM) |
Definition at line 52 of file SDL_error.h.
Referenced by COREAUDIO_OpenDevice(), IMA_ADPCM_decode(), Map1to1(), Map1toN(), MS_ADPCM_decode(), open_audio_device(), PSPAUD_OpenDevice(), ReadChunk(), RenderDrawLinesWithRects(), RenderDrawPointsWithRects(), RLEAlphaSurface(), RLEColorkeySurface(), SDL_AddDollarGesture_one(), SDL_AddFinger(), SDL_AddTimer(), SDL_AddTouch(), SDL_AddVideoDisplay(), SDL_AllocBlitMap(), SDL_AllocFormat(), SDL_AllocPalette(), SDL_AllocRW(), SDL_CreateCond(), SDL_CreateMutex(), SDL_CreateRGBSurface(), SDL_CreateSemaphore(), SDL_CreateTexture(), SDL_CreateThread(), SDL_CreateWindow(), SDL_CreateWindowFrom(), SDL_CreateWindowTexture(), SDL_GameControllerAddMapping(), SDL_GameControllerOpen(), SDL_Generic_SetTLSData(), SDL_GestureAddTouch(), SDL_GetWindowGammaRamp(), SDL_HapticOpen(), SDL_HapticOpenFromJoystick(), SDL_JoystickOpen(), SDL_LoadBMP_RW(), SDL_PrivateGetControllerGUIDFromMappingString(), SDL_PrivateGetControllerNameFromMappingString(), SDL_RenderDrawLines(), SDL_RenderDrawPoints(), SDL_RenderFillRects(), SDL_SW_CreateYUVTexture(), SDL_TLSSet(), SDL_UpdateTextureNative(), SDL_UpdateTextureYUV(), SDL_UpdateTextureYUVPlanar(), SDLTest_CommonCreateState(), SW_CreateRendererForSurface(), SW_RenderDrawLines(), SW_RenderDrawPoints(), and SW_RenderFillRects().
#define SDL_Unsupported | ( | ) | SDL_Error(SDL_UNSUPPORTED) |
Definition at line 53 of file SDL_error.h.
Referenced by SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGBA(), SDL_BlendPoint_RGB(), SDL_BlendPoint_RGBA(), SDL_DrawPoint(), SDL_DrawPoints(), SDL_GL_BindTexture(), SDL_GL_GetAttribute(), SDL_GL_SetAttribute(), SDL_GL_UnbindTexture(), SDL_RenderReadPixels(), SDL_SetRelativeMouseMode(), SDL_SetRenderTarget(), SDL_SetSurfaceBlendMode(), SDL_SetWindowGammaRamp(), SDL_UpdateYUVTexture(), SDLTest_GenerateSignedBoundaryValues(), and SDLTest_GenerateUnsignedBoundaryValues().
enum SDL_errorcode |
Enumerator | |
---|---|
SDL_ENOMEM | |
SDL_EFREAD | |
SDL_EFWRITE | |
SDL_EFSEEK | |
SDL_UNSUPPORTED | |
SDL_LASTERROR |
Definition at line 55 of file SDL_error.h.
Definition at line 212 of file SDL_error.c.
References SDL_error::error, error, and SDL_GetErrBuf().
Referenced by Zeni::Core::assert_no_error(), Zeni::Controllers::device_added(), Zeni::Video_GL_Shader::init(), Zeni::Video_GL_Fixed::init(), Zeni::Core::print_error(), SDL_InitSubSystem(), SDL_LoadBMP_RW(), SDL_SaveBMP_RW(), Zeni::Video_GL_Shader::set_vertical_sync(), Zeni::Video_GL_Fixed::set_vertical_sync(), and Zeni::Controllers::set_vibration().
DECLSPEC int SDLCALL SDL_Error | ( | SDL_errorcode | code | ) |
Definition at line 222 of file SDL_error.c.
References SDL_EFREAD, SDL_EFSEEK, SDL_EFWRITE, SDL_ENOMEM, SDL_SetError(), and SDL_UNSUPPORTED.
Referenced by ReadChunk(), SDL_LoadBMP_RW(), and SDL_SaveBMP_RW().
Definition at line 204 of file SDL_error.c.
References SDL_ERRBUFIZE, and SDL_GetErrorMsg().
Referenced by Zeni::Core::assert_no_error(), Zeni::Controllers::device_added(), main(), Zeni::Core::print_error(), print_errors(), SDL_LoadBMP_RW(), SDL_SaveBMP_RW(), SDL_SetError(), SDLNet_GetError(), SDLTest_CommonInit(), SDLTest_LoadIcon(), SDLTest_ScreenShot(), and SDLTest_SetTestTimeout().
Definition at line 53 of file SDL_error.c.
Referenced by COREAUDIO_OpenDevice(), find_device_by_name(), get_audio_device(), IMA_ADPCM_decode(), InitMS_ADPCM(), mem_seek(), mem_writeconst(), open_audio_device(), prepare_audiospec(), prepare_audiounit(), PSP_EventInit(), PSP_GL_CreateContext(), PSP_GL_DeleteContext(), PSP_GL_MakeCurrent(), PSP_GL_SetSwapInterval(), PSPAUD_OpenDevice(), SDL_AddEvent(), SDL_AudioInit(), SDL_BlendFillRect(), SDL_BlendFillRects(), SDL_BlendLine(), SDL_BlendLines(), SDL_BlendPoint(), SDL_BlendPoints(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_BuildAudioTypeCVT(), SDL_CalculateBlit(), SDL_CondBroadcast(), SDL_CondSignal(), SDL_CondWait(), SDL_CondWaitTimeout(), SDL_ConvertAudio(), SDL_ConvertPixels(), SDL_ConvertSurface(), SDL_CreateColorCursor(), SDL_CreateCond(), SDL_CreateMutex(), SDL_CreateRenderer(), SDL_CreateRGBSurface(), SDL_CreateSemaphore(), SDL_CreateSoftwareRenderer(), SDL_CreateSurfaceOnStack(), SDL_CreateSystemCursor(), SDL_CreateTexture(), SDL_CreateTextureFromSurface(), SDL_CreateWindow(), SDL_CreateWindowTexture(), sdl_dfb_check(), SDL_DrawLine(), SDL_DrawLines(), SDL_DrawPoint(), SDL_DrawPoints(), SDL_Error(), SDL_FillRect(), SDL_FillRects(), SDL_GameControllerOpen(), SDL_GetAudioDeviceName(), SDL_GetClosestDisplayModeForDisplay(), SDL_GetDisplayMode(), SDL_GetRenderDriverInfo(), SDL_GetRendererOutputSize(), SDL_GetTouchFinger(), SDL_GetWindowDisplayIndex(), SDL_GetWindowDisplayMode(), SDL_GL_CreateContext(), SDL_GL_GetAttribute(), SDL_GL_GetProcAddress(), SDL_GL_LoadLibrary(), SDL_GL_MakeCurrent(), SDL_GL_SetAttribute(), SDL_GL_SetSwapInterval(), SDL_GL_SwapWindow(), SDL_HapticGetEffectStatus(), SDL_HapticName(), SDL_HapticNewEffect(), SDL_HapticOpen(), SDL_HapticOpened(), SDL_HapticOpenFromJoystick(), SDL_HapticOpenFromMouse(), SDL_HapticPause(), SDL_HapticRumbleInit(), SDL_HapticRumblePlay(), SDL_HapticRumbleStop(), SDL_HapticSetAutocenter(), SDL_HapticSetGain(), SDL_HapticUpdateEffect(), SDL_InitSubSystem(), SDL_JoystickGetAxis(), SDL_JoystickGetBall(), SDL_JoystickGetButton(), SDL_JoystickGetDeviceGUID(), SDL_JoystickGetHat(), SDL_JoystickNameForIndex(), SDL_JoystickOpen(), SDL_LoadBMP_RW(), SDL_LoadWAV_RW(), SDL_LockMutex(), SDL_LockTexture(), SDL_MixAudioFormat(), SDL_mutexP(), SDL_mutexV(), SDL_OpenAudio(), SDL_PeepEvents(), SDL_PixelFormatEnumToMasks(), SDL_PrivateGameControllerParseButton(), SDL_PrivateGameControllerParseControllerConfigString(), SDL_PrivateJoystickValid(), SDL_RecreateWindow(), SDL_RenderCopy(), SDL_RenderCopyEx(), SDL_RenderDrawLines(), SDL_RenderDrawPoints(), SDL_RenderDrawRects(), SDL_RenderFillRects(), SDL_RWFromFile(), SDL_RWFromFP(), SDL_SaveBMP_RW(), SDL_SaveDollarTemplate(), SDL_SemPost(), SDL_SemTryWait(), SDL_SemValue(), SDL_SemWait(), SDL_SemWaitTimeout(), SDL_SetCursor(), SDL_SetDisplayModeForDisplay(), SDL_SetPixelFormatPalette(), SDL_SetRenderTarget(), SDL_SetSurfacePalette(), SDL_ShowMessageBox(), SDL_SoftStretch(), SDL_SW_CopyYUVToRGB(), SDL_SW_CreateYUVTexture(), SDL_SW_LockYUVTexture(), SDL_SW_SetupYUVDisplay(), SDL_SYS_CreateThread(), SDL_SYS_JoystickClose(), SDL_SYS_JoystickInit(), SDL_SYS_JoystickName(), SDL_SYS_SetThreadPriority(), SDL_SYS_SetTLSData(), SDL_TryLockMutex(), SDL_UninitializedVideo(), SDL_UnlockMutex(), SDL_UpdateWindowSurfaceRects(), SDL_UpdateWindowTexture(), SDL_UpdateYUVTexture(), SDL_UpperBlit(), SDL_UpperBlitScaled(), SDL_VideoInit(), SDLNet_SetError(), SW_CreateRendererForSurface(), SW_CreateTexture(), SW_GetOutputSize(), SW_RenderReadPixels(), ValidEffect(), and ValidHaptic().