use $feature() to enable debug features

This commit is contained in:
Alessandro Mauri 2025-10-03 15:31:44 +02:00
parent 8cecb57d93
commit 167676f478
3 changed files with 3 additions and 7 deletions

View file

@ -36,7 +36,6 @@ import ugui;
// CONSTANTS //
// ============================================================================================== //
const int DEBUG = 1;
const bool CYCLE = true;
const int MAX_QUAD_BATCH = 2048;
@ -147,7 +146,7 @@ struct Renderer {
fn void Renderer.init(&self, ZString title, uint width, uint height, bool vsync)
{
// set wayland hint automagically
$if DEBUG == 0:
$if $feature(RENDER_DEBUG) == false && $feature(USE_WAYLAND) == true:
bool has_wayland = false;
for (int i = 0; i < sdl::get_num_video_drivers(); i++) {
ZString driver = sdl::get_video_driver(i);