diff options
author | Chris Robinson <[email protected]> | 2013-10-07 12:05:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-07 12:05:39 -0700 |
commit | b3841653c67276f23717b87b47899740ab0028f4 (patch) | |
tree | d219009aa448a78baaef9b952e0a53790ec944e9 /OpenAL32/Include | |
parent | 32d3bde261f461807d42d419ddba44b45798436b (diff) |
Remove the last of the al_try code
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 535975f3..47f1934c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -911,38 +911,6 @@ void FillCPUCaps(ALuint capfilter); goto lbl; \ } while(0) -/** - * Starts a try block. Must not be nested within another try block within the - * same function. - */ -#define al_try do { \ - int _al_in_try_block = 1; -/** Marks the end of the try block. */ -#define al_endtry _al_endtry_label: \ - (void)_al_in_try_block; \ -} while(0) - -/** - * The try block is terminated, and execution jumps to al_endtry. - */ -#define al_throw do { \ - _al_in_try_block = 0; \ - goto _al_endtry_label; \ -} while(0) -/** Sets an AL error on the given context, before throwing. */ -#define al_throwerr(ctx, err) do { \ - alSetError((ctx), (err)); \ - al_throw; \ -} while(0) - -/** - * Throws an AL_INVALID_VALUE error with the given ctx if the given condition - * is false. - */ -#define CHECK_VALUE(ctx, cond) do { \ - if(!(cond)) \ - al_throwerr((ctx), AL_INVALID_VALUE); \ -} while(0) #ifdef __cplusplus } |