diff options
author | Chris Robinson <[email protected]> | 2008-03-22 19:05:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-03-22 19:05:00 -0700 |
commit | 28093a6dcb419f3809acb661d9d8815a64a97f2c (patch) | |
tree | 484fdcc3351b27f75b52200c018c46ddceab85ed /OpenAL32 | |
parent | 2af549880412bb666574945a81ea6fbcba82f324 (diff) |
constify the pointer that holds the filename
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 886168e0..98d84a18 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -100,16 +100,16 @@ extern CRITICAL_SECTION _alMutex; extern char _alDebug[256]; -#define AL_PRINT(...) do { \ - int _al_print_i; \ - char *_al_print_fn = strrchr(__FILE__, '/'); \ - if(!_al_print_fn) _al_print_fn = __FILE__; \ - else _al_print_fn += 1; \ +#define AL_PRINT(...) do { \ + int _al_print_i; \ + const char *_al_print_fn = strrchr(__FILE__, '/'); \ + if(!_al_print_fn) _al_print_fn = __FILE__; \ + else _al_print_fn += 1; \ _al_print_i = snprintf(_alDebug, sizeof(_alDebug), "AL lib: %s:%d: ", _al_print_fn, __LINE__); \ - if(_al_print_i < (int)sizeof(_alDebug) && _al_print_i > 0) \ + if(_al_print_i < (int)sizeof(_alDebug) && _al_print_i > 0) \ snprintf(_alDebug+_al_print_i, sizeof(_alDebug)-_al_print_i, __VA_ARGS__); \ - _alDebug[sizeof(_alDebug)-1] = 0; \ - fprintf(stderr, "%s", _alDebug); \ + _alDebug[sizeof(_alDebug)-1] = 0; \ + fprintf(stderr, "%s", _alDebug); \ } while(0) |