--- a/lib/accessor.h Wed Mar 26 13:20:45 2014 +0100
+++ b/lib/accessor.h Thu Mar 27 09:52:13 2014 +0100
@@ -21,10 +21,10 @@
#define __DECLARE_GLOBAL_FB(type, domain, name)\
type domain##__##name;\
static type *GLOBAL__##name = &(domain##__##name);\
- type* __GET_GLOBAL_##name(void) {\
+ static type* __GET_GLOBAL_##name(void) {\
return &(*GLOBAL__##name);\
}\
- extern void type##_init__(type* data__, BOOL retain);
+ /*extern void type##_init__(type* data__, BOOL retain)*/;
#define __DECLARE_GLOBAL_LOCATION(type, location)\
extern type *location;
#define __DECLARE_GLOBAL_LOCATED(type, resource, name)\
@@ -68,6 +68,7 @@
__INIT_RETAIN(domain##__##name, retained)
#define __INIT_EXTERNAL(type, global, name, retained)\
{\
+ type* __GET_GLOBAL_##global();\
name.value = __GET_GLOBAL_##global();\
__INIT_RETAIN(name, retained)\
}