mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 08:57:01 +00:00
Copypaste SDL_NSLog to UIKit backend, document it as such
This commit is contained in:
@@ -252,6 +252,9 @@ Cocoa_CreateImage(SDL_Surface * surface)
|
||||
*
|
||||
* This doesn't really have aything to do with the interfaces of the SDL video
|
||||
* subsystem, but we need to stuff this into an Objective-C source code file.
|
||||
*
|
||||
* NOTE: This is copypasted in src/video/uikit/SDL_uikitvideo.m! Be sure both
|
||||
* versions remain identical!
|
||||
*/
|
||||
|
||||
void SDL_NSLog(const char *text)
|
||||
|
||||
@@ -247,12 +247,18 @@ UIKit_ForceUpdateHomeIndicator()
|
||||
*
|
||||
* This doesn't really have aything to do with the interfaces of the SDL video
|
||||
* subsystem, but we need to stuff this into an Objective-C source code file.
|
||||
*
|
||||
* NOTE: This is copypasted from src/video/cocoa/SDL_cocoavideo.m! Thus, if
|
||||
* Cocoa is supported, we use that one instead. Be sure both versions remain
|
||||
* identical!
|
||||
*/
|
||||
|
||||
#if !defined(SDL_VIDEO_DRIVER_COCOA)
|
||||
void SDL_NSLog(const char *text)
|
||||
{
|
||||
NSLog(@"%s", text);
|
||||
}
|
||||
#endif /* SDL_VIDEO_DRIVER_COCOA */
|
||||
|
||||
/*
|
||||
* iOS Tablet detection
|
||||
|
||||
Reference in New Issue
Block a user