mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 06:00:33 -04:00
19 lines
No EOL
333 B
C
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 |