mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 22:20:30 -04:00
github publish
This commit is contained in:
commit
506e23bf32
542 changed files with 120675 additions and 0 deletions
19
Windows/debug.h
Normal file
19
Windows/debug.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue