Skip to content

Commit

Permalink
__LINE__ を 99 に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Jan 26, 2020
1 parent cbef509 commit d32aacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sakura_core/config/build_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void *operator new[](size_t const size,
#include <stdlib.h>
#include <crtdbg.h>

#define DBG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define DBG_NEW new (_NORMAL_BLOCK, __FILE__, 99)
// Replace _NORMAL_BLOCK with _CLIENT_BLOCK if you want the
// allocations to be of _CLIENT_BLOCK type
#else
Expand Down
6 changes: 3 additions & 3 deletions sakura_core/debug/Debug2.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ void warning_point();
{ \
if (!(exp)) \
{ \
debug_output("!assert: %hs(%d): %hs\n", __FILE__, __LINE__, #exp); \
debug_exit2(__FILE__, __LINE__, #exp); \
debug_output("!assert: %hs(%d): %hs\n", __FILE__, 99, #exp); \
debug_exit2(__FILE__, 99, #exp); \
} \
}

#define assert_warning(exp) \
{ \
if (!(exp)) \
{ \
debug_output("!warning: %hs(%d): %hs\n", __FILE__, __LINE__, #exp); \
debug_output("!warning: %hs(%d): %hs\n", __FILE__, 99, #exp); \
warning_point(); \
} \
}
Expand Down

0 comments on commit d32aacd

Please sign in to comment.