summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina/eina_cow.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/eina/eina_cow.h b/src/lib/eina/eina_cow.h
index 800371b..4836d3e 100644
--- a/src/lib/eina/eina_cow.h
+++ b/src/lib/eina/eina_cow.h
@@ -177,6 +177,24 @@ EAPI Eina_Bool eina_cow_gc(Eina_Cow *cow);
177 while (0); 177 while (0);
178 178
179/** 179/**
180 * @def EINA_COW_WRITE_END_NOGC
181 * @brief Definition for the macro to close the writeable pointer without triggering the GC.
182 *
183 * @param[in,out] Cow The Eina_Cow where the const pointer came from.
184 * @param[in] Read The const pointer to get a writable handler from.
185 * @param[in] Write The name of the variable where to put the writeable pointer to.
186 *
187 * @since 1.8.0
188 *
189 * @note This macro closes the scope opened by EINA_COW_WRITE_BEGIN().
190 */
191#define EINA_COW_WRITE_END_NOGC(Cow, Read, Write) \
192 eina_cow_done(Cow, ((const Eina_Cow_Data**)&(Read)), Write, \
193 EINA_FALSE); \
194 } \
195 while (0);
196
197/**
180 * @} 198 * @}
181 */ 199 */
182 200