mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02:00
Added g_array_length
-Yosh
This commit is contained in:
2
glib.h
2
glib.h
@@ -891,6 +891,8 @@ void g_string_sprintfa (GString *string,
|
||||
|
||||
/* Resizable arrays
|
||||
*/
|
||||
#define g_array_length(array,type) \
|
||||
(((array)->len)/sizeof(type))
|
||||
#define g_array_append_val(array,type,val) \
|
||||
g_rarray_append (array, (gpointer) &val, sizeof (type))
|
||||
#define g_array_append_vals(array,type,vals,nvals) \
|
||||
|
Reference in New Issue
Block a user