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:
Nirbheek Chauhan 2019-07-01 14:55:20 +05:30 committed by Nirbheek Chauhan
parent f336fdd088
commit 7cfdb23387

View file

@ -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.
*/