Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge r2918:2919 from 1.2 branch: alloca macro params in parentheses.

  • Loading branch information
icculus committed Nov 29, 2006
1 parent b830a66 commit a9670addd81d17fff8745cc931ff94fb1eb0100a

File 1 of 1 in a9670ad

@@ -223,10 +223,10 @@ char *alloca();
# 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 a9670ad

Please sign in to comment.