summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6aba80)
raw | patch | inline | side by side (parent: a6aba80)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 31 Mar 2014 20:47:46 +0000 (22:47 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 31 Mar 2014 20:47:46 +0000 (22:47 +0200) |
This may be used to create a simple dynamic object of a specified type.
Dynamic type means that it uses a destructor.
Dynamic type means that it uses a destructor.
src/include/core/object.h | patch | blob | history |
index 25e37d18b7c4a2817a438f4624a3bdf2b3c9e93a..819d11e849b48d4e1e2eb65d35247f4abe22af29 100644 (file)
#define sdb_object_create_T(n,t) \
sdb_object_create_simple((n), sizeof(t), NULL)
+/*
+ * sdb_object_create_dT:
+ * Create a simple object of dynamic type 't' using destructor 'd'.
+ */
+#define sdb_object_create_dT(n,t,d) \
+ sdb_object_create_simple((n), sizeof(t), d)
+
/*
* sdb_object_create_wrapper:
* Create a new sdb_object_t wrapping some arbitrary other object.