mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	Including SD_error.h into headers with error-returning functions
This commit is contained in:
		 Petar Popovic
					Petar Popovic
				
			
				
					committed by
					
						 Sam Lantinga
						Sam Lantinga
					
				
			
			
				
	
			
			
			 Sam Lantinga
						Sam Lantinga
					
				
			
						parent
						
							ff651a7941
						
					
				
				
					commit
					3f8dba3713
				
			| @@ -28,6 +28,7 @@ | |||||||
| #ifndef SDL_camera_h_ | #ifndef SDL_camera_h_ | ||||||
| #define SDL_camera_h_ | #define SDL_camera_h_ | ||||||
|  |  | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_video.h> | #include <SDL3/SDL_video.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_clipboard_h_ | #define SDL_clipboard_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -22,6 +22,7 @@ | |||||||
| #ifndef SDL_dialog_h_ | #ifndef SDL_dialog_h_ | ||||||
| #define SDL_dialog_h_ | #define SDL_dialog_h_ | ||||||
|  |  | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_video.h> | #include <SDL3/SDL_video.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_filesystem_h_ | #define SDL_filesystem_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -63,6 +63,7 @@ | |||||||
| #define SDL_hidapi_h_ | #define SDL_hidapi_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -40,6 +40,7 @@ | |||||||
| #define SDL_hints_h_ | #define SDL_hints_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_init_h_ | #define SDL_init_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -24,6 +24,7 @@ | |||||||
|  |  | ||||||
| #include <SDL3/SDL_platform_defines.h> | #include <SDL3/SDL_platform_defines.h> | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_events.h> | #include <SDL3/SDL_events.h> | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
| @@ -23,6 +23,7 @@ | |||||||
| #define SDL_messagebox_h_ | #define SDL_messagebox_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_video.h>      /* For SDL_Window */ | #include <SDL3/SDL_video.h>      /* For SDL_Window */ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_misc_h_ | #define SDL_misc_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -65,6 +65,7 @@ | |||||||
| #define SDL_pixels_h_ | #define SDL_pixels_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_endian.h> | #include <SDL3/SDL_endian.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_properties_h_ | #define SDL_properties_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -49,6 +49,7 @@ | |||||||
| #define SDL_render_h_ | #define SDL_render_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_events.h> | #include <SDL3/SDL_events.h> | ||||||
| #include <SDL3/SDL_properties.h> | #include <SDL3/SDL_properties.h> | ||||||
| #include <SDL3/SDL_rect.h> | #include <SDL3/SDL_rect.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_storage_h_ | #define SDL_storage_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_filesystem.h> | #include <SDL3/SDL_filesystem.h> | ||||||
| #include <SDL3/SDL_properties.h> | #include <SDL3/SDL_properties.h> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_surface_h_ | #define SDL_surface_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_blendmode.h> | #include <SDL3/SDL_blendmode.h> | ||||||
| #include <SDL3/SDL_pixels.h> | #include <SDL3/SDL_pixels.h> | ||||||
| #include <SDL3/SDL_properties.h> | #include <SDL3/SDL_properties.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_system_h_ | #define SDL_system_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_keyboard.h> | #include <SDL3/SDL_keyboard.h> | ||||||
| #include <SDL3/SDL_render.h> | #include <SDL3/SDL_render.h> | ||||||
| #include <SDL3/SDL_video.h> | #include <SDL3/SDL_video.h> | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_version_h_ | #define SDL_version_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
| /* Set up for C function definitions, even when using C++ */ | /* Set up for C function definitions, even when using C++ */ | ||||||
|   | |||||||
| @@ -29,6 +29,7 @@ | |||||||
| #define SDL_video_h_ | #define SDL_video_h_ | ||||||
|  |  | ||||||
| #include <SDL3/SDL_stdinc.h> | #include <SDL3/SDL_stdinc.h> | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_pixels.h> | #include <SDL3/SDL_pixels.h> | ||||||
| #include <SDL3/SDL_properties.h> | #include <SDL3/SDL_properties.h> | ||||||
| #include <SDL3/SDL_rect.h> | #include <SDL3/SDL_rect.h> | ||||||
|   | |||||||
| @@ -28,6 +28,7 @@ | |||||||
| #ifndef SDL_vulkan_h_ | #ifndef SDL_vulkan_h_ | ||||||
| #define SDL_vulkan_h_ | #define SDL_vulkan_h_ | ||||||
|  |  | ||||||
|  | #include <SDL3/SDL_error.h> | ||||||
| #include <SDL3/SDL_video.h> | #include <SDL3/SDL_video.h> | ||||||
|  |  | ||||||
| #include <SDL3/SDL_begin_code.h> | #include <SDL3/SDL_begin_code.h> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user