mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	gvalue: Improve _unset() documentation
g_value_unset() only works with initialized value and will assert if the GValue is zero-filled (or initialized with G_VALUE_INIT). Document this behaviour and refer to g_value_clear() for a method that work on both initialized and zero-filled GValue. https://bugzilla.gnome.org/show_bug.cgi?id=755766
This commit is contained in:
		@@ -257,7 +257,9 @@ g_value_reset (GValue *value)
 | 
			
		||||
 * Clears the current value in @value and "unsets" the type,
 | 
			
		||||
 * this releases all resources associated with this GValue.
 | 
			
		||||
 * An unset value is the same as an uninitialized (zero-filled)
 | 
			
		||||
 * #GValue structure.
 | 
			
		||||
 * #GValue structure. Note that you cannot call this method on
 | 
			
		||||
 * uninitialized structure, for that, g_value_clear() method can
 | 
			
		||||
 * be used.
 | 
			
		||||
 */
 | 
			
		||||
void
 | 
			
		||||
g_value_unset (GValue *value)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user