Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/SDL_utils_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,16 @@ extern char *SDL_CreateDeviceName(Uint16 vendor, Uint16 product, const char *ven
// Log what backend a subsystem chose, if a hint was set to do so. Useful for debugging.
extern void SDL_DebugLogBackend(const char *subsystem, const char *backend);

#endif // SDL_utils_h_
static SDL_INLINE int SDL_IntMax(int a, int b)
{
return (a > b) ? a : b;
}

static SDL_INLINE int SDL_IntClamp(int a, int b, int c)
{
if (a < b) return b;
if (a > c) return c;
return a;
}

#endif
Loading
Loading