mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gstcheck: Document strcmp used in string cmp macros
strcmp() does not allow the arguments to be NULL, but g_strcmp0() does, so document that we use g_strcmp0() so that people don't need to worry about that.
This commit is contained in:
parent
f336fdd088
commit
7cfdb23387
1 changed files with 2 additions and 2 deletions
|
@ -428,7 +428,7 @@ G_STMT_START { \
|
|||
* @a: a string literal or expression
|
||||
* @b: a string literal or expression
|
||||
*
|
||||
* This macro checks that @a and @b are equal (as per strcmp) and aborts if
|
||||
* This macro checks that @a and @b are equal (as per g_strcmp0()) and aborts if
|
||||
* this is not the case, printing both expressions and the values they
|
||||
* evaluated to. This macro is for use in unit tests.
|
||||
*/
|
||||
|
@ -444,7 +444,7 @@ G_STMT_START { \
|
|||
* @a: a string literal or expression
|
||||
* @b: a string literal or expression
|
||||
*
|
||||
* This macro checks that @a and @b are equal (as per strcmp) and aborts if
|
||||
* This macro checks that @a and @b are equal (as per g_strcmp0()) and aborts if
|
||||
* this is not the case, printing both expressions and the values they
|
||||
* evaluated to. This macro is for use in unit tests.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue