gates_of_skeldal/Windows/debug.h
2025-01-24 18:27:22 +01:00

19 lines
No EOL
333 B
C

#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <stdio.h>
#define STOP() StopProgram(__FILE__,__LINE__);
static __inline void StopProgram(const char *text, int line)
{
char buff[256];
sprintf(buff,"Stop at %s line %d",text,line);
MessageBox(NULL,buff,NULL,MB_OK|MB_SYSTEMMODAL);
__asm
{
int 3;
}
}
#endif