Skip to content
Permalink
Browse files
Wrapped some macro params in parentheses for alloca wrappers.
  Thansk, Suzuki Masahiro.
  • Loading branch information
icculus committed Nov 29, 2006
1 parent b152671 commit a9a1bc9b190dd241855c278e1665042d21cf5d70
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/SDL_stdinc.h
@@ -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

0 comments on commit a9a1bc9

Please sign in to comment.