mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 22:12:46 +00:00
# fixes to string_s selftest
snd_mgr: fix cppdoc comments (got shredded by IDE autofmt) string_s: disable WARN_IF_PTR_LEN (too many false positives) test_string_s: add missing debug_skip_next_err (fixes complaints on VC2003) refs #130 This was SVN commit r4066.
This commit is contained in:
@@ -70,10 +70,14 @@
|
||||
// raise a debug warning if <len> is the size of a pointer.
|
||||
// catches bugs such as: tchar* s = ..; tcpy_s(s, sizeof(s), T(".."));
|
||||
// if warnings get annoying, replace with debug_printf. usable as a statement.
|
||||
#define WARN_IF_PTR_LEN(len) STMT( \
|
||||
//
|
||||
// currently disabled due to high risk of false positives.
|
||||
#define WARN_IF_PTR_LEN(len)\
|
||||
/*
|
||||
STMT( \
|
||||
if(len == sizeof(char*)) \
|
||||
debug_warn("make sure string buffer size is correct");\
|
||||
)
|
||||
)*/
|
||||
|
||||
|
||||
// skip our implementation if already available, but not the
|
||||
|
||||
Reference in New Issue
Block a user