forked from enlightenment/efl
Better documenting EINA_MAGIC_SET()'s use.
Patch by Jonas Gastal. SVN revision: 50744
This commit is contained in:
parent
1edd7e4ffa
commit
faa7644e22
|
@ -255,6 +255,12 @@ eina_magic_string_shutdown(void)
|
||||||
* free(ptr->name);
|
* free(ptr->name);
|
||||||
* free(ptr);
|
* free(ptr);
|
||||||
* }
|
* }
|
||||||
|
* struct base *base_new(int id, const char *name) {
|
||||||
|
* struct base *ptr = malloc(sizeof(struct base));
|
||||||
|
* EINA_MAGIC_SET(ptr, BASE_MAGIC);
|
||||||
|
* ptr->id = id;
|
||||||
|
* ptr->name = strdup(name);
|
||||||
|
* }
|
||||||
*
|
*
|
||||||
* struct subtype {
|
* struct subtype {
|
||||||
* struct base base;
|
* struct base base;
|
||||||
|
|
Loading…
Reference in New Issue