Skip to content

Instantly share code, notes, and snippets.

@pmttavara
pmttavara / good_assert.h
Last active May 18, 2023 12:33
Better assert() for Windows - public domain
#ifndef good_assert /* Better assert() for Windows - public domain */
#ifdef _WIN32
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _WINDOWS_
__declspec(dllimport) int __stdcall ExitProcess(unsigned int a);
__declspec(dllimport) int __stdcall MessageBoxA(void *a, const char *b,
const char *c, unsigned int d);
#endif /* _WINDOWS_ */