Refactor xmake.lua and make some warnings as errors

This commit is contained in:
SirLynix
2023-04-30 21:11:30 +02:00
parent 445ed93fbb
commit 97f1c2c56c
21 changed files with 104 additions and 31 deletions

View File

@@ -117,6 +117,12 @@ namespace Nz
return false;
}
case WindowBackend::Web:
{
NazaraError("unsupported creation from a Web handle");
return false;
}
case WindowBackend::Cocoa: systemHandle = handle.cocoa.window; break;
case WindowBackend::X11: systemHandle = reinterpret_cast<void*>(std::uintptr_t(handle.x11.window)); break;
case WindowBackend::Windows: systemHandle = handle.windows.window; break;