Better documenting EINA_MAGIC_SET()'s use.

Patch by Jonas Gastal.



SVN revision: 50744
This commit is contained in:
Gustavo Lima Chaves 2010-08-02 16:57:38 +00:00
parent 1edd7e4ffa
commit faa7644e22
1 changed files with 6 additions and 0 deletions

View File

@ -255,6 +255,12 @@ eina_magic_string_shutdown(void)
* free(ptr->name);
* 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 base base;