summaryrefslogtreecommitdiff
path: root/legacy/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-05-30 10:08:41 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-05-30 10:08:41 +0000
commit318bd30043f1d317ade4d7d3a3213c793e5f7cc4 (patch)
tree04c31f444de220769776b00555575ff79cbdcaa4 /legacy/embryo
parentb5e054507a19b2d731511fcef6414ab44b06d943 (diff)
This is a small change, so I won't changelog it (or backport), but
make _shutdown() funcs across efl complain and be unhappy if you shutdown to < 0 shutdowns and not pull init count below 0. SVN revision: 71548
Diffstat (limited to 'legacy/embryo')
-rw-r--r--legacy/embryo/src/lib/embryo_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/embryo/src/lib/embryo_main.c b/legacy/embryo/src/lib/embryo_main.c
index 0b01b11141..3c57ec7c37 100644
--- a/legacy/embryo/src/lib/embryo_main.c
+++ b/legacy/embryo/src/lib/embryo_main.c
@@ -2,6 +2,7 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#include <stdio.h>
5#include <stdlib.h> 6#include <stdlib.h>
6#include <time.h> 7#include <time.h>
7 8
@@ -29,6 +30,11 @@ embryo_init(void)
29EAPI int 30EAPI int
30embryo_shutdown(void) 31embryo_shutdown(void)
31{ 32{
33 if (_embryo_init_count <= 0)
34 {
35 printf("%s:%i Init count not greater than 0 in shutdown.", __FUNCTION__, __LINE__);
36 return 0;
37 }
32 if (--_embryo_init_count != 0) 38 if (--_embryo_init_count != 0)
33 return _embryo_init_count; 39 return _embryo_init_count;
34 40