1
0
Fork 0

include/Spectre/System/Log.h: implement a static "Log" class instead of just a function.

This commit is contained in:
Henrik Hautakoski 2019-11-10 14:56:56 +01:00
parent e10daeaaa6
commit 3b27db9435
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
8 changed files with 101 additions and 31 deletions

View file

@ -53,7 +53,7 @@ bool Win32Display::create(DisplayDescription description)
NULL, NULL, GetModuleHandle(NULL), (LPVOID) this);
if (!m_handle) {
log("Win32 - Could not create window: %s", Win32GetMessage(GetLastError()));
Log::error("Win32 - Could not create window: %s", Win32GetMessage(GetLastError()));
return false;
}