Skip to content

Commit

Permalink
Cleaned up subject-to-change warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 7, 2005
1 parent 21edf21 commit a416fb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 2 additions & 11 deletions osx/alContext.c
Expand Up @@ -239,16 +239,7 @@ ALCAPI ALvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALenum param,ALsizei

#if SUPPORTS_ALC_EXT_DISCONNECT
case ALC_CONNECTED:
{
static int seen = 0;
if (!seen)
{
printf("WARNING: ALC_EXT_disconnect is"
" subject to change!\n");
seen = 1;
}
}

_AL_SUBJECT_TO_CHANGE("ALC_EXT_disconnect");
if (size < sizeof (ALint))
__alcSetError((ALdevice *) dev, ALC_INVALID_VALUE);
else
Expand Down Expand Up @@ -630,7 +621,7 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALubyte *deviceName,
retval->capture.resampled = NULL;
retval->capture.converted = NULL;

fprintf(stderr, "WARNING: ALC_EXT_capture specification is subject to change!\n\n");
_AL_SUBJECT_TO_CHANGE("ALC_EXT_capture");
return((ALCdevice *) retval);
} // alcCaptureOpenDevice

Expand Down
9 changes: 9 additions & 0 deletions osx/alInternal.h
Expand Up @@ -431,6 +431,15 @@ ALvoid __alDoVBAP(ALcontext *ctx, ALsource *src, ALvector pos, ALfloat gain);


// Extensions...
#define _AL_SUBJECT_TO_CHANGE(x) { \
static int seen = 0; \
if (!seen) { \
fprintf(stderr, "WARNING: %s is subject to change!\n\n", x); \
seen = 1; \
} \
}


const ALubyte *__alCalculateExtensions(ALboolean isALC);
ALboolean __alIsExtensionPresent(const ALubyte *extName, ALboolean isALC);

Expand Down

0 comments on commit a416fb2

Please sign in to comment.