lib/accessor.h
changeset 708 6cc8255ecfe4
parent 706 31553c22f318
child 713 e3ca0f4d47b3
equal deleted inserted replaced
707:e666763ac743 708:6cc8255ecfe4
    21 #define __DECLARE_GLOBAL_FB(type, domain, name)\
    21 #define __DECLARE_GLOBAL_FB(type, domain, name)\
    22 	type domain##__##name;\
    22 	type domain##__##name;\
    23 	static type *GLOBAL__##name = &(domain##__##name);\
    23 	static type *GLOBAL__##name = &(domain##__##name);\
    24 	type* __GET_GLOBAL_##name(void) {\
    24 	type* __GET_GLOBAL_##name(void) {\
    25 		return &(*GLOBAL__##name);\
    25 		return &(*GLOBAL__##name);\
    26 	}
    26 	}\
       
    27 	extern void type##_init__(type* data__, BOOL retain);
    27 #define __DECLARE_GLOBAL_LOCATION(type, location)\
    28 #define __DECLARE_GLOBAL_LOCATION(type, location)\
    28 	extern type *location;
    29 	extern type *location;
    29 #define __DECLARE_GLOBAL_LOCATED(type, resource, name)\
    30 #define __DECLARE_GLOBAL_LOCATED(type, resource, name)\
    30 	__IEC_##type##_p resource##__##name;\
    31 	__IEC_##type##_p resource##__##name;\
    31 	static __IEC_##type##_p *GLOBAL__##name = &(resource##__##name);\
    32 	static __IEC_##type##_p *GLOBAL__##name = &(resource##__##name);\