Skip to content

Commit

Permalink
Replace int 3 to DEBUG_BREAK macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Feb 28, 2016
1 parent c780609 commit e13c2c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/xrCore/xrMemory_subst_msvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void xrMemory::mem_free(void *P)
}
#ifdef DEBUG_MEMORY_MANAGER
if (g_globalCheckAddr==P)
__asm int 3;
DEBUG_BREAK;
if (mem_initialized)
debug_cs.Enter();
#endif
Expand Down Expand Up @@ -163,7 +163,7 @@ void* xrMemory::mem_realloc(void* P, size_t size)
}
#ifdef DEBUG_MEMORY_MANAGER
if (g_globalCheckAddr==P)
__asm int 3;
DEBUG_BREAK;
if (mem_initialized)
debug_cs.Enter();
#endif
Expand Down Expand Up @@ -239,7 +239,7 @@ void* xrMemory::mem_realloc(void* P, size_t size)
if (mem_initialized)
debug_cs.Leave();
if (g_globalCheckAddr==_ptr)
__asm int 3;
DEBUG_BREAK;
#endif
return _ptr;
}
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/Level_Bullet_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ void CBulletManager::RegisterEvent (EventType Type, BOOL _dynamic, SBullet* bu
if (m_Events.size() > 1000) {
static bool breakpoint = true;
if (breakpoint)
__asm int 3;
DEBUG_BREAK;
}
#endif // #ifdef DEBUG

Expand Down
2 changes: 1 addition & 1 deletion src/xrNetServer/NET_Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ u16 NET_Compressor::Decompress (BYTE* dest, const u32 &dest_size, BYTE* src, con
if( src[0] != NET_TAG_COMPRESSED && src[0] != NET_TAG_NONCOMPRESSED )
{
Msg( "! invalid compression-tag %02X", src[0] );
__asm { int 3 }
DEBUG_BREAK;
}
#endif NET_USE_COMPRESSSION

Expand Down

0 comments on commit e13c2c5

Please sign in to comment.