mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
add line number and file name to error log
This commit is contained in:
@@ -77,7 +77,7 @@ static int8_t audio_cvt(audiodevice const* dev, SDL_AudioSpec const* spec, uint8
|
|||||||
|
|
||||||
// converts the audio to the new format
|
// converts the audio to the new format
|
||||||
if (SDL_ConvertAudio(&cvt)) {
|
if (SDL_ConvertAudio(&cvt)) {
|
||||||
error("something went wrong when loading/converting an audio buffer! SDL Error: %s", SDL_GetError());
|
error("%s:%u something went wrong when loading/converting an audio buffer! SDL Error: %s", __FILE_NAME__, __LINE__, SDL_GetError());
|
||||||
free(cvt.buf);
|
free(cvt.buf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user