mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 10:33:42 +01:00
Add g_assert_true, g_assert_false and g_assert_null
These are just like g_assert(), but using a different entry point for the message, so we can repurpose them together with the other assertion macros. https://bugzilla.gnome.org/show_bug.cgi?id=692125
This commit is contained in:
@@ -348,6 +348,33 @@
|
||||
* <envar>G_DISABLE_ASSERT</envar> when compiling the application.
|
||||
*/
|
||||
|
||||
/**
|
||||
* g_assert_true:
|
||||
* @expr: the expression to check
|
||||
*
|
||||
* Debugging macro to check that an expression is true.
|
||||
*
|
||||
* Since: 2.38
|
||||
*/
|
||||
|
||||
/**
|
||||
* g_assert_false:
|
||||
* @expr: the expression to check
|
||||
*
|
||||
* Debugging macro to check an expression is false.
|
||||
*
|
||||
* Since: 2.38
|
||||
*/
|
||||
|
||||
/**
|
||||
* g_assert_null:
|
||||
* @expr: the expression to check
|
||||
*
|
||||
* Debugging macro to check an expression is %NULL.
|
||||
*
|
||||
* Since: 2.38
|
||||
*/
|
||||
|
||||
/**
|
||||
* g_assert_cmpstr:
|
||||
* @s1: a string (may be %NULL)
|
||||
|
||||
Reference in New Issue
Block a user