mirror of
https://github.com/libretro/RetroArch
synced 2024-12-27 15:29:23 +00:00
Put fprintfs and printfs behind ifndef NDEBUG
This commit is contained in:
parent
dba4ca04ee
commit
a00ab53ef6
@ -144,7 +144,7 @@ void libretro_dummy_retro_get_system_av_info(
|
|||||||
refresh_rate = 60.0;
|
refresh_rate = 60.0;
|
||||||
|
|
||||||
info->timing.fps = refresh_rate;
|
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_width = frame_buf_width;
|
||||||
info->geometry.base_height = frame_buf_height;
|
info->geometry.base_height = frame_buf_height;
|
||||||
|
@ -285,7 +285,9 @@ void x86_cpuid(int func, int flags[4])
|
|||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
__cpuid(flags, func);
|
__cpuid(flags, func);
|
||||||
#else
|
#else
|
||||||
|
#ifndef NDEBUG
|
||||||
printf("Unknown compiler. Cannot check CPUID with inline assembly.\n");
|
printf("Unknown compiler. Cannot check CPUID with inline assembly.\n");
|
||||||
|
#endif
|
||||||
memset(flags, 0, 4 * sizeof(int));
|
memset(flags, 0, 4 * sizeof(int));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -307,7 +309,9 @@ static uint64_t xgetbv_x86(uint32_t idx)
|
|||||||
/* Intrinsic only works on 2010 SP1 and above. */
|
/* Intrinsic only works on 2010 SP1 and above. */
|
||||||
return _xgetbv(idx);
|
return _xgetbv(idx);
|
||||||
#else
|
#else
|
||||||
|
#ifndef NDEBUG
|
||||||
printf("Unknown compiler. Cannot check xgetbv bits.\n");
|
printf("Unknown compiler. Cannot check xgetbv bits.\n");
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -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)
|
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]);
|
fprintf(stderr, "Out X = %d => In X = %d\n", i, ctx->horiz.filter_pos[i]);
|
||||||
|
#endif
|
||||||
return false;
|
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)
|
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]);
|
fprintf(stderr, "Out Y = %d => In Y = %d\n", i, ctx->vert.filter_pos[i]);
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user