SDL  2.0
begin_code.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _begin_code_h
 
#define SDL_DEPRECATED
 
#define SDL_UNUSED
 
#define SDL_INLINE   inline
 
#define __inline__   inline
 
#define SDL_FORCE_INLINE   static SDL_INLINE
 
#define SDL_NORETURN
 
#define NULL   ((void *)0)
 

Detailed Description

This file sets things up for C dynamic library function definitions, static inlined functions, and structures aligned at 4-byte alignment. If you don't like ugly C preprocessor code, don't look at this file. :)

Definition in file begin_code.h.

Macro Definition Documentation

◆ __inline__

#define __inline__   inline

Definition at line 133 of file begin_code.h.

◆ _begin_code_h

#define _begin_code_h

Definition at line 34 of file begin_code.h.

◆ NULL

#define NULL   ((void *)0)

Definition at line 164 of file begin_code.h.

Referenced by _checkInvalidNameError(), _checkInvalidParameterError(), _checkInvalidScancodeError(), _checkInvalidWindowError(), _clearTestSurface(), _compare(), _createMouseSuiteTestWindow(), _createVideoSuiteTestWindow(), _destroyMouseSuiteTestWindow(), _destroyVideoSuiteTestWindow(), _events_sampleNullEventFilter(), SDL_BApp::_HandleKeyboardFocus(), SDL_BApp::_HandleMouseFocus(), SDL_BApp::_HandleMouseMove(), _hasTexAlpha(), _hasTexColor(), SDL_BWin::_KeyEvent(), _loadTestFace(), _Redraw(), SDL_BWin::_Restore(), _surfaceSetUp(), _surfaceTearDown(), _testBlitBlendMode(), _timerTestCallback(), add_audio_device(), AllocateDataQueuePacket(), audio_buildAudioCVTNegative(), audio_convertAudio(), audio_enumerateAndNameAudioDevices(), audio_enumerateAndNameAudioDevicesNegativeTests(), audio_initOpenCloseQuitAudio(), audio_initQuitAudio(), audio_lockUnlockOpenAudioDevice(), audio_openCloseAndGetAudioStatus(), audio_openCloseAudioDeviceConnected(), audio_pauseUnpauseAudio(), audio_printAudioDrivers(), audio_printCurrentAudioDriver(), audio_quitInitAudioSubSystem(), Blit_RGB101010_index8(), Blit_RGB888_index8(), BlitNto1(), BlitNto1Key(), BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), BlitNto1SurfaceAlphaKey(), button_messagebox(), ChooseCVTResampler(), clean_out_device_list(), CleanupDestroyRenderer(), clipboard_testClipboardTextFunctions(), close_audio_device(), closemutex(), CPU_haveAltiVec(), createCommandBuffers(), createCommandPool(), createDevice(), createFences(), SDL_BWin::CreateGLView(), createInstance(), createSemaphore(), createSwapchain(), createWindow(), decode_edid(), destroyCommandBuffers(), destroyCommandPool(), destroyFences(), destroySwapchain(), destroyWindow(), SDL_BWin::DirectConnected(), SDL_BWin::DispatchMessage(), Draw(), DrawComposite(), DrawScreen(), EnsureStreamBufferSize(), events_addDelEventWatch(), FIFO_Writer(), findPhysicalDevice(), finish_audio_entry_points_init(), free_device_list(), get_audio_device(), GetDeviceForIndex(), SDL_BApp::GetID(), getlocale(), GetMouseClickState(), getSurfaceFormats(), getSwapchainImages(), GetYUVPlanes(), glGetConfig(), glLoadLibrary(), glMakeCurrent(), HandleJoystickAxis(), hints_getHint(), hints_setHint(), IMA_ADPCM_decode(), init_color_cursor(), InitCreateRenderer(), InitIME(), initVulkan(), IsSDLWindowEventPending(), iteration(), keyboard_getKeyboardState(), keyboard_getKeyFromName(), keyboard_getKeyName(), keyboard_getKeyNameNegative(), keyboard_getScancodeFromNameNegative(), keyboard_getScancodeNameNegative(), keyboard_setTextInputRect(), keyboard_setTextInputRectNegative(), LoadSprite(), LoadTexture(), loop(), main(), Map1to1(), Map1toN(), mark_device_removed(), mouse_createFreeColorCursor(), mouse_createFreeCursor(), mouse_getCursor(), mouse_getMouseFocus(), mouse_getMouseState(), mouse_getRelativeMouseState(), mouse_setCursor(), mouse_warpMouseInWindow(), MoveSprites(), MS_ADPCM_decode(), open_audio(), open_audio_device(), pixels_allocFreeFormat(), pixels_allocFreePalette(), pixels_calcGammaRamp(), pixels_getPixelFormatName(), platform_testGetFunctions(), platform_testGetPowerInfo(), platform_testGetSetClearError(), platform_testSetErrorEmptyInput(), platform_testSetErrorInvalidInput(), print_devices(), ReadChunk(), recordPipelineImageBarrier(), rect_testEnclosePoints(), rect_testEnclosePointsParam(), rect_testEnclosePointsRepeatedInput(), rect_testEnclosePointsWithClipping(), rect_testHasIntersectionParam(), rect_testIntersectRectAndLineParam(), rect_testIntersectRectEmpty(), rect_testIntersectRectOutside(), rect_testIntersectRectParam(), rect_testIntersectRectPoint(), rect_testRectEmptyParam(), rect_testRectEqualsParam(), rect_testUnionRectParam(), RecursivelyCalculateShapeTree(), Redraw(), render_testBlit(), render_testBlitAlpha(), render_testBlitBlend(), render_testBlitColor(), render_testPrimitives(), render_testPrimitivesBlend(), report_power(), RLEAlphaSurface(), RLEColorkeySurface(), runAdder(), RunThread(), rwops_testAllocFree(), rwops_testConstMem(), rwops_testFileRead(), rwops_testFileWrite(), rwops_testFileWriteReadEndian(), rwops_testFPRead(), rwops_testFPWrite(), rwops_testMem(), rwops_testParamNegative(), RWopsSetUp(), SaveTemplate(), SDL_AddAudioCVTFilter(), SDL_AddDollarGesture(), SDL_AddEvent(), SDL_AddHintCallback(), SDL_AddTimerInternal(), SDL_AddTouch(), SDL_AllocBlitMap(), SDL_AllocFormat(), SDL_AllocPalette(), SDL_AllocRW(), SDL_AssertionsQuit(), SDL_atof(), SDL_atoi(), SDL_AudioGetDeviceBuf_Default(), SDL_AudioInit(), SDL_AudioStreamPut(), SDL_AudioStreamPutInternal(), SDL_BApp::SDL_BApp(), SDL_BlendFillRects(), SDL_BlendPoints(), SDL_BufferQueueDrainCallback(), SDL_BufferQueueFillCallback(), SDL_BuildAudioCVT(), SDL_BuildAudioResampleCVT(), SDL_BuildAudioTypeCVTFromFloat(), SDL_BuildAudioTypeCVTToFloat(), SDL_BWin::SDL_BWin(), SDL_CalculateBlendLineFunc(), SDL_CalculateBlit(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_CalculateDrawLineFunc(), SDL_CalculateGammaRamp(), SDL_CalculateShapeBitmap(), SDL_CalculateShapeTree(), SDL_CaptureAudio(), SDL_CaptureMouse(), SDL_ChooseBlitFunc(), SDL_ClearDataQueue(), SDL_CondWaitTimeout(), SDL_ConvertAudio(), SDL_ConvertPixels_PackUVPlanes_to_NV(), SDL_ConvertPixels_RGB_to_YUV(), SDL_ConvertPixels_SplitNV_to_UVPlanes(), SDL_ConvertPixels_YUV_to_RGB(), SDL_ConvertSurface(), SDL_ConvertSurfaceFormat(), SDL_CreateColorCursor(), SDL_CreateCond(), SDL_CreateCursor(), SDL_CreateMutex(), SDL_CreateRenderer(), SDL_CreateRGBSurface(), SDL_CreateRGBSurfaceFrom(), SDL_CreateRGBSurfaceWithFormat(), SDL_CreateRGBSurfaceWithFormatFrom(), SDL_CreateSemaphore(), SDL_CreateShapedWindow(), SDL_CreateSoftwareRenderer(), SDL_CreateSystemCursor(), SDL_CreateTexture(), SDL_CreateTextureFromSurface(), SDL_CreateThread(), SDL_CreateThreadInternal(), SDL_CreateThreadWithStackSize(), SDL_CreateWindow(), SDL_CreateWindowAndRenderer(), SDL_CreateWindowFramebuffer(), SDL_CreateWindowFrom(), SDL_CreateWindowTexture(), SDL_CutEvent(), SDL_DelHintCallback(), SDL_DestroyRenderer(), SDL_DestroyTexture(), SDL_DestroyWindow(), SDL_DestroyWindowTexture(), SDL_DetachThread(), SDL_EnclosePoints(), SDL_EVDEV_kbd_init(), SDL_FillRect1(), SDL_FillRect2(), SDL_FillRect3(), SDL_FreeCursor(), SDL_FreeResampleFilter(), SDL_FreeShapeTree(), SDL_FreeSurface(), SDL_GameControllerAddMappingsFromRW(), SDL_GameControllerClose(), SDL_GameControllerFromInstanceID(), SDL_GameControllerGetJoystick(), SDL_GameControllerGetStringForAxis(), SDL_GameControllerGetStringForButton(), SDL_GameControllerInit(), SDL_GameControllerInitMappings(), SDL_GameControllerLoadHints(), SDL_GameControllerMapping(), SDL_GameControllerMappingForGUID(), SDL_GameControllerMappingForIndex(), SDL_GameControllerName(), SDL_GameControllerNameForIndex(), SDL_GameControllerOpen(), SDL_GameControllerQuitMappings(), SDL_GenerateAssertionReport(), SDL_Generic_GetTLSData(), SDL_Generic_SetTLSData(), SDL_GestureProcessEvent(), SDL_GestureQuit(), SDL_GetAssertionHandler(), SDL_GetAudioDeviceName(), SDL_GetAudioDriver(), SDL_GetClosestDisplayMode(), SDL_GetClosestDisplayModeForDisplay(), SDL_GetCPUCount(), SDL_GetCurrentVideoDriver(), SDL_GetCursor(), SDL_GetDefaultCursor(), SDL_GetDisplayDriverData(), SDL_GetDisplayForWindow(), SDL_GetDisplayName(), SDL_getenv(), SDL_GetErrBuf(), SDL_GetFinger(), SDL_GetFocusWindow(), SDL_GetGestureTouch(), SDL_GetJoystickGUIDType(), SDL_GetKeyFromName(), SDL_GetPowerInfo(), SDL_GetRendererOutputSize(), SDL_GetRGB(), SDL_GetRGBA(), SDL_GetShapedWindowMode(), SDL_GetSystemRAM(), SDL_GetThreadName(), SDL_GetTouch(), SDL_GetTouchFinger(), SDL_GetVideoDriver(), SDL_GetWindowData(), SDL_GetWindowDisplayIndex(), SDL_GetWindowFromID(), SDL_GetWindowSurface(), SDL_GL_CreateContext(), SDL_GL_DeleteContext(), SDL_GL_GetCurrentContext(), SDL_GL_GetCurrentWindow(), SDL_GL_GetProcAddress(), SDL_GL_GetSwapInterval(), SDL_GL_MakeCurrent(), SDL_GL_SetSwapInterval(), SDL_HapticClose(), SDL_HapticDestroyEffect(), SDL_HapticName(), SDL_HapticNewEffect(), SDL_HapticOpen(), SDL_HapticOpenFromJoystick(), SDL_HapticOpenFromMouse(), SDL_HapticQuit(), SDL_HapticSetGain(), SDL_HasEvent(), SDL_HasEvents(), SDL_HasWindows(), SDL_iconv_string(), SDL_IME_Init(), SDL_InitFormat(), SDL_InitSubSystem(), SDL_InvalidateMap(), SDL_IOReady(), SDL_IsShapedWindow(), SDL_JoystickClose(), SDL_JoystickFromInstanceID(), SDL_JoystickGetDeviceProduct(), SDL_JoystickGetDeviceProductVersion(), SDL_JoystickGetDeviceVendor(), SDL_JoystickGetGUIDString(), SDL_JoystickGetProduct(), SDL_JoystickGetProductVersion(), SDL_JoystickGetVendor(), SDL_JoystickInit(), SDL_JoystickName(), SDL_JoystickNameForIndex(), SDL_JoystickOpen(), SDL_JoystickQuit(), SDL_LoadBMP_RW(), SDL_LoadDollarTemplates(), SDL_LoadFile_RW(), SDL_LoadVIDPIDListFromHint(), SDL_LoadWAV_RW(), SDL_LockMutex(), SDL_LogMessageV(), SDL_LogOutput(), SDL_MapRGB(), SDL_MapRGBA(), SDL_MapSurface(), SDL_MixAudio(), SDL_MouseQuit(), SDL_mutexP(), SDL_mutexV(), SDL_NewAudioStream(), SDL_NewDataQueue(), SDL_OnApplicationDidBecomeActive(), SDL_OnApplicationWillResignActive(), SDL_OpenAudio(), SDL_PeepEvents(), SDL_PrepareResampleFilter(), SDL_PrintFloat(), SDL_PrintString(), SDL_PrivateAddMappingForGUID(), SDL_PrivateGetControllerGUIDFromMappingString(), SDL_PrivateGetControllerMapping(), SDL_PrivateGetControllerMappingForGUID(), SDL_PrivateGetControllerMappingFromMappingString(), SDL_PrivateGetControllerNameFromMappingString(), SDL_PrivateJoystickShouldIgnoreEvent(), SDL_PrivateJoystickValid(), SDL_PromptAssertion(), SDL_QuitInit_Internal(), SDL_QuitQuit_Internal(), SDL_ReadFromDataQueue(), SDL_RecreateWindow(), SDL_RemoveAudioDevice(), SDL_RemoveTimer(), SDL_RendererEventWatch(), SDL_RenderGetMetalCommandEncoder(), SDL_RenderGetMetalLayer(), SDL_RenderSetLogicalSize(), SDL_ReportAssertion(), SDL_ReserveSpaceInDataQueue(), SDL_ResetAssertionReport(), SDL_RunAudio(), SDL_RWFromConstMem(), SDL_RWFromFile(), SDL_RWFromFP(), SDL_RWFromMem(), SDL_SaveBMP_RW(), SDL_SemWaitTimeout(), SDL_SendDrop(), SDL_SendDropComplete(), SDL_SetAssertionHandler(), SDL_SetCursor(), SDL_setenv(), SDL_SetError(), SDL_SetHintWithPriority(), SDL_SetMouseFocus(), SDL_SetRelativeMouseMode(), SDL_SetWindowData(), SDL_SetWindowGammaRamp(), SDL_SetWindowHitTest(), SDL_SetWindowShape(), SDL_ShouldIgnoreGameController(), SDL_ShowCursor(), SDL_ShowSimpleMessageBox(), SDL_SoftBlit(), SDL_SoftStretch(), SDL_StartEventLoop(), SDL_StopEventLoop(), SDL_strchr(), SDL_strrchr(), SDL_strstr(), SDL_SW_CopyYUVToRGB(), SDL_SW_CreateYUVTexture(), SDL_SYS_AddJoystickDevice(), SDL_SYS_AddMFIJoystickDevice(), SDL_SYS_GetTLSData(), SDL_SYS_JoystickAttached(), SDL_SYS_JoystickClose(), SDL_SYS_JoystickInit(), SDL_SYS_JoystickOpen(), SDL_SYS_JoystickQuit(), SDL_SYS_JoystickUpdate(), SDL_SYS_RemoveJoystickDevice(), SDL_SYS_SetupThread(), SDL_TimerQuit(), SDL_TimerThread(), SDL_TLSCleanup(), SDL_TLSGet(), SDL_TLSSet(), SDL_TouchQuit(), SDL_TraverseShapeTree(), SDL_TryLockMutex(), SDL_UnlockMutex(), SDL_UnlockTextureNative(), SDL_UnlockTextureYUV(), SDL_UnRLESurface(), SDL_UntrackAllocation(), SDL_UpdateFullscreenMode(), SDL_UpdateMouseFocus(), SDL_UpdateTextureNative(), SDL_UpdateTextureYUV(), SDL_UpdateTextureYUVPlanar(), SDL_UpdateWindowGrab(), SDL_UpdateWindowTexture(), SDL_UpperBlit(), SDL_UpperBlitScaled(), SDL_VideoInit(), SDL_VideoQuit(), SDL_Vulkan_GetVkGetInstanceProcAddr(), SDL_WarpMouseInWindow(), SDL_WindowHasAShape(), SDL_WriteToDataQueue(), SDLgfx_rotateSurface(), SDLTest_CleanupTextDrawing(), SDLTest_CommonCreateState(), SDLTest_CommonEvent(), SDLTest_CommonInit(), SDLTest_CompareSurfaces(), SDLTest_Crc32CalcBuffer(), SDLTest_Crc32CalcEnd(), SDLTest_Crc32CalcStart(), SDLTest_Crc32Done(), SDLTest_Crc32Init(), SDLTest_DrawCharacter(), SDLTest_GenerateExecKey(), SDLTest_GenerateRunSeed(), sdltest_generateRunSeed(), SDLTest_LoadIcon(), SDLTest_LogAllocations(), SDLTest_Md5Final(), SDLTest_Md5Init(), SDLTest_Md5Update(), SDLTest_Random(), sdltest_randomAsciiString(), SDLTest_RandomAsciiStringOfSize(), sdltest_randomAsciiStringOfSize(), SDLTest_RandomAsciiStringWithMaximumLength(), sdltest_randomAsciiStringWithMaximumLength(), sdltest_randomBoundaryNumberSint16(), sdltest_randomBoundaryNumberSint32(), sdltest_randomBoundaryNumberSint64(), sdltest_randomBoundaryNumberSint8(), sdltest_randomBoundaryNumberUint16(), sdltest_randomBoundaryNumberUint32(), sdltest_randomBoundaryNumberUint64(), sdltest_randomBoundaryNumberUint8(), SDLTest_RandomInit(), SDLTest_RandomInitTime(), SDLTest_RunSuites(), SDLTest_RunTest(), SDLTest_ScreenShot(), SDLTest_SetTestTimeout(), ShouldUseTextureFramebuffer(), shutdownVulkan(), stdlib_getsetenv(), stdlib_snprintf(), SteamControllerConnectedCallback(), surface_testCompleteSurfaceConversion(), surface_testLoadFailure(), surface_testSaveLoadBitmap(), surface_testSurfaceConversion(), SW_CreateRenderer(), SW_CreateRendererForSurface(), SW_RenderClear(), SW_RenderCopyEx(), SW_WindowEvent(), syswm_getWindowWMInfo(), Test64Bit(), test_multi_audio(), ThreadFunc(), timer_addRemoveTimer(), unifont_cleanup(), unifont_draw_glyph(), unifont_init(), unifont_load_texture(), UpdateEventsForDeviceRemoval(), UpdateLogicalSize(), UpdateTexture(), validate_hex(), ValidHaptic(), video_createWindowVariousFlags(), video_createWindowVariousPositions(), video_createWindowVariousSizes(), video_getClosestDisplayModeCurrentResolution(), video_getSetWindowData(), video_getSetWindowGrab(), video_getSetWindowMaximumSize(), video_getSetWindowMinimumSize(), video_getSetWindowPosition(), video_getSetWindowSize(), video_getWindowBrightness(), video_getWindowBrightnessNegative(), video_getWindowDisplayMode(), video_getWindowDisplayModeNegative(), video_getWindowFlags(), video_getWindowGammaRamp(), video_getWindowGammaRampNegative(), video_getWindowId(), video_getWindowPixelFormat(), WatchGameController(), WatchJoystick(), WinMain(), WINRT_ProcessWindowSizeChange(), WINRT_SetDisplayOrientationsPreference(), wl_compositor_create_region(), wl_compositor_create_surface(), wl_data_device_manager_create_data_source(), wl_data_device_manager_get_data_device(), wl_display_get_registry(), wl_display_sync(), wl_registry_bind(), wl_seat_get_keyboard(), wl_seat_get_pointer(), wl_seat_get_touch(), wl_shell_get_shell_surface(), wl_shm_create_pool(), wl_shm_pool_create_buffer(), wl_subcompositor_get_subsurface(), wl_surface_frame(), zwp_pointer_constraints_v1_confine_pointer(), zwp_pointer_constraints_v1_lock_pointer(), zwp_relative_pointer_manager_v1_get_relative_pointer(), zxdg_shell_v6_create_positioner(), zxdg_shell_v6_get_xdg_surface(), zxdg_surface_v6_get_popup(), and zxdg_surface_v6_get_toplevel().

◆ SDL_DEPRECATED

#define SDL_DEPRECATED

Definition at line 40 of file begin_code.h.

◆ SDL_FORCE_INLINE

#define SDL_FORCE_INLINE   static SDL_INLINE

Definition at line 144 of file begin_code.h.

Referenced by SDL_Swap16(), SDL_Swap32(), and SDL_Swap64().

◆ SDL_INLINE

◆ SDL_NORETURN

#define SDL_NORETURN

Definition at line 154 of file begin_code.h.

Referenced by SDLTest_SetTestTimeout().

◆ SDL_UNUSED

#define SDL_UNUSED

Definition at line 48 of file begin_code.h.