mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-27 04:29:51 +01:00
glib: Add missing (nullable) and (optional) annotations
Add various (nullable) and (optional) annotations which were missing from a variety of functions. Also port a couple of existing (allow-none) annotations in the same files to use (nullable) and (optional) as appropriate instead. Secondly, add various (not nullable) annotations as needed by the new default in gobject-introspection of marking gpointers as (nullable). See https://bugzilla.gnome.org/show_bug.cgi?id=729660. This includes adding some stub documentation comments for the assertion macro error functions, which weren’t previously documented. The new comments are purely to allow for annotations, and hence are marked as (skip) to prevent the symbols appearing in the GIR file. https://bugzilla.gnome.org/show_bug.cgi?id=719966
This commit is contained in:
@@ -1681,7 +1681,7 @@ find_case (gconstpointer l, gconstpointer s)
|
||||
|
||||
/**
|
||||
* GTestFixtureFunc:
|
||||
* @fixture: the test fixture
|
||||
* @fixture: (not nullable): the test fixture
|
||||
* @user_data: the data provided when registering the test
|
||||
*
|
||||
* The type used for functions that operate on test fixtures. This is
|
||||
@@ -2429,6 +2429,14 @@ g_assertion_message (const char *domain,
|
||||
abort ();
|
||||
}
|
||||
|
||||
/**
|
||||
* g_assertion_message_expr: (skip)
|
||||
* @domain: (nullable):
|
||||
* @file:
|
||||
* @line:
|
||||
* @func:
|
||||
* @expr: (nullable):
|
||||
*/
|
||||
void
|
||||
g_assertion_message_expr (const char *domain,
|
||||
const char *file,
|
||||
|
||||
Reference in New Issue
Block a user