Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Improvements to stdlib.
Browse files Browse the repository at this point in the history
All SDL_* functions are always available as real symbols, so you can always
link against them as a stable ABI. By default, however, all the things that
might have dithered down to macros in your application are now force-inlined,
to give you the same effect as before and theoretically better performance,
but still solve the classic macro problems.

Elsewhere, we provide real functions for these things that simply wrap the
inline functions, in case one needs to have a real function available.

Also: this exposed bugs: SDL_abs() does something different if you had the
macro vs the libc function, SDL_memcpy() returns a void* in the function
but not the macro, etc.
  • Loading branch information
icculus committed Mar 15, 2013
1 parent 2a6428c commit b6e2635
Show file tree
Hide file tree
Showing 7 changed files with 626 additions and 414 deletions.

0 comments on commit b6e2635

Please sign in to comment.