mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 02:35:06 -05:00
Wrapped some macro params in parentheses for alloca wrappers.
Thansk, Suzuki Masahiro. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -181,10 +181,10 @@ extern DECLSPEC void SDLCALL SDL_free(void *mem);
|
||||
# endif
|
||||
#endif
|
||||
#ifdef HAVE_ALLOCA
|
||||
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count)
|
||||
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count))
|
||||
#define SDL_stack_free(data)
|
||||
#else
|
||||
#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*count)
|
||||
#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count))
|
||||
#define SDL_stack_free(data) SDL_free(data)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user