Mercurial > SDL_sound_CoreAudio
comparison SDL_sound_internal.h @ 377:cbb15ecf423a
WinCE (PocketPC) patches from Tyler.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 02 Jul 2002 03:58:24 +0000 |
parents | 5a72981b8cba |
children | fb519e6028e3 |
comparison
equal
deleted
inserted
replaced
376:51883cd1193e | 377:cbb15ecf423a |
---|---|
42 #if (defined DEBUG_CHATTER) | 42 #if (defined DEBUG_CHATTER) |
43 #define SNDDBG(x) printf x | 43 #define SNDDBG(x) printf x |
44 #else | 44 #else |
45 #define SNDDBG(x) | 45 #define SNDDBG(x) |
46 #endif | 46 #endif |
47 | |
48 #if HAVE_ASSERT_H | |
49 # include <assert.h> | |
50 #endif | |
51 | |
52 #ifdef _WIN32_WCE | |
53 extern char *strrchr(const char *s, int c); | |
54 # ifdef NDEBUG | |
55 # define assert(x) | |
56 # else | |
57 # define assert(x) if(!x) { fprintf(stderr,"Assertion failed in %s, line %s.\n",__FILE__,__LINE__); fclose(stderr); fclose(stdout); exit(1); } | |
58 # endif | |
59 #endif | |
60 | |
61 | |
62 #if (!defined assert) /* if all else fails. */ | |
63 # define assert(x) | |
64 #endif | |
65 | |
47 | 66 |
48 typedef struct __SOUND_DECODERFUNCTIONS__ | 67 typedef struct __SOUND_DECODERFUNCTIONS__ |
49 { | 68 { |
50 /* This is a block of info about your decoder. See SDL_sound.h. */ | 69 /* This is a block of info about your decoder. See SDL_sound.h. */ |
51 const Sound_DecoderInfo info; | 70 const Sound_DecoderInfo info; |