1
0
Fork 0

Fix audio-related static analysis issues

This commit is contained in:
krcroft 2020-01-29 00:51:52 -08:00 committed by Patryk Obara
parent b040cb32c3
commit 93f9cd7e4e
4 changed files with 29 additions and 28 deletions

View file

@ -34,6 +34,11 @@
#define strncasecmp(a, b, n) _strnicmp(a, b, n)
#endif
// Include a message in assert, similar to static_assert:
#define assertm(exp, msg) assert(((void)msg, exp))
// Use (void) to silent unused warnings.
// https://en.cppreference.com/w/cpp/error/assert
/// Copy a string into C array
///
/// This function copies string pointed by src to fixed-size buffer dst.