Fix in accessor undefined init methods for function block global instances
authorLaurent Bessard
Fri, 16 Nov 2012 01:02:54 +0100
changeset 708 6cc8255ecfe4
parent 707 e666763ac743
child 709 bca119630cf6
Fix in accessor undefined init methods for function block global instances
lib/accessor.h
--- a/lib/accessor.h	Fri Nov 16 00:39:35 2012 +0100
+++ b/lib/accessor.h	Fri Nov 16 01:02:54 2012 +0100
@@ -23,7 +23,8 @@
 	static type *GLOBAL__##name = &(domain##__##name);\
 	type* __GET_GLOBAL_##name(void) {\
 		return &(*GLOBAL__##name);\
-	}
+	}\
+	extern void type##_init__(type* data__, BOOL retain);
 #define __DECLARE_GLOBAL_LOCATION(type, location)\
 	extern type *location;
 #define __DECLARE_GLOBAL_LOCATED(type, resource, name)\