make _shutdown() funcs across efl complain and be unhappy if you
shutdown to < 0 shutdowns and not pull init count below 0.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@71548
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
# include "config.h"
#endif
+#include <stdio.h>
#include <stdlib.h>
#include <time.h>
EAPI int
embryo_shutdown(void)
{
+ if (_embryo_init_count <= 0)
+ {
+ printf("%s:%i Init count not greater than 0 in shutdown.", __FUNCTION__, __LINE__);
+ return 0;
+ }
if (--_embryo_init_count != 0)
return _embryo_init_count;