Skip to content

Commit e13c2c5

Browse files
author
nitrocaster
committed
Replace int 3 to DEBUG_BREAK macro.
1 parent c780609 commit e13c2c5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/xrCore/xrMemory_subst_msvc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void xrMemory::mem_free(void *P)
110110
}
111111
#ifdef DEBUG_MEMORY_MANAGER
112112
if (g_globalCheckAddr==P)
113-
__asm int 3;
113+
DEBUG_BREAK;
114114
if (mem_initialized)
115115
debug_cs.Enter();
116116
#endif
@@ -163,7 +163,7 @@ void* xrMemory::mem_realloc(void* P, size_t size)
163163
}
164164
#ifdef DEBUG_MEMORY_MANAGER
165165
if (g_globalCheckAddr==P)
166-
__asm int 3;
166+
DEBUG_BREAK;
167167
if (mem_initialized)
168168
debug_cs.Enter();
169169
#endif
@@ -239,7 +239,7 @@ void* xrMemory::mem_realloc(void* P, size_t size)
239239
if (mem_initialized)
240240
debug_cs.Leave();
241241
if (g_globalCheckAddr==_ptr)
242-
__asm int 3;
242+
DEBUG_BREAK;
243243
#endif
244244
return _ptr;
245245
}

src/xrGame/Level_Bullet_Manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ void CBulletManager::RegisterEvent (EventType Type, BOOL _dynamic, SBullet* bu
10631063
if (m_Events.size() > 1000) {
10641064
static bool breakpoint = true;
10651065
if (breakpoint)
1066-
__asm int 3;
1066+
DEBUG_BREAK;
10671067
}
10681068
#endif // #ifdef DEBUG
10691069

src/xrNetServer/NET_Compressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ u16 NET_Compressor::Decompress (BYTE* dest, const u32 &dest_size, BYTE* src, con
461461
if( src[0] != NET_TAG_COMPRESSED && src[0] != NET_TAG_NONCOMPRESSED )
462462
{
463463
Msg( "! invalid compression-tag %02X", src[0] );
464-
__asm { int 3 }
464+
DEBUG_BREAK;
465465
}
466466
#endif NET_USE_COMPRESSSION
467467

0 commit comments

Comments
 (0)