Put fprintfs and printfs behind ifndef NDEBUG

This commit is contained in:
twinaphex 2020-06-17 11:22:13 +02:00
parent dba4ca04ee
commit a00ab53ef6
3 changed files with 9 additions and 1 deletions

View File

@ -144,7 +144,7 @@ void libretro_dummy_retro_get_system_av_info(
refresh_rate = 60.0;
info->timing.fps = refresh_rate;
info->timing.sample_rate = 30000.0;
info->timing.sample_rate = 48000.0;
info->geometry.base_width = frame_buf_width;
info->geometry.base_height = frame_buf_height;

View File

@ -285,7 +285,9 @@ void x86_cpuid(int func, int flags[4])
#elif defined(_MSC_VER)
__cpuid(flags, func);
#else
#ifndef NDEBUG
printf("Unknown compiler. Cannot check CPUID with inline assembly.\n");
#endif
memset(flags, 0, 4 * sizeof(int));
#endif
}
@ -307,7 +309,9 @@ static uint64_t xgetbv_x86(uint32_t idx)
/* Intrinsic only works on 2010 SP1 and above. */
return _xgetbv(idx);
#else
#ifndef NDEBUG
printf("Unknown compiler. Cannot check xgetbv bits.\n");
#endif
return 0;
#endif
}

View File

@ -85,7 +85,9 @@ static bool validate_filter(struct scaler_ctx *ctx)
{
if (ctx->horiz.filter_pos[i] > max_w_pos || ctx->horiz.filter_pos[i] < 0)
{
#ifndef NDEBUG
fprintf(stderr, "Out X = %d => In X = %d\n", i, ctx->horiz.filter_pos[i]);
#endif
return false;
}
}
@ -96,7 +98,9 @@ static bool validate_filter(struct scaler_ctx *ctx)
{
if (ctx->vert.filter_pos[i] > max_h_pos || ctx->vert.filter_pos[i] < 0)
{
#ifndef NDEBUG
fprintf(stderr, "Out Y = %d => In Y = %d\n", i, ctx->vert.filter_pos[i]);
#endif
return false;
}
}