Mercurial > mm7
view Engine/stuff.h @ 2542:bacf9809126a
.
author | a.parshin |
---|---|
date | Sun, 10 May 2015 02:04:52 +0200 |
parents | a902abdfc7f2 |
children |
line wrap: on
line source
#pragma once #include <windows.h> #include <stdio.h> inline void Assert(bool condition, const char *format, ...) { if (condition) return; va_list va; va_start(va, format); char msg[4096]; vsprintf(msg, format, va); MessageBoxA(nullptr, msg, "Assert", 0); va_end(va); __debugbreak(); } inline void Error(const char *format, ...) { va_list va; va_start(va, format); char msg[4096]; vsprintf(msg, format, va); MessageBoxA(nullptr, msg, "Error", 0); va_end(va); __debugbreak(); }