Changeset 46690 in vbox
- Timestamp:
- Jun 19, 2013 7:56:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r46033 r46690 1066 1066 * @param name The name of the variable member. 1067 1067 */ 1068 #define DECLCALLBACKPTR(type, name) type (RTCALL * name) 1068 #if defined(__IBMC__) || defined(__IBMCPP__) 1069 # define DECLCALLBACKPTR(type, name) type (* RTCALL name) 1070 #else 1071 # define DECLCALLBACKPTR(type, name) type (RTCALL * name) 1072 #endif 1069 1073 1070 1074 /** @def DECLCALLBACKMEMBER … … 1073 1077 * @param name The name of the struct/union/class member. 1074 1078 */ 1075 #define DECLCALLBACKMEMBER(type, name) type (RTCALL * name) 1079 #if defined(__IBMC__) || defined(__IBMCPP__) 1080 # define DECLCALLBACKMEMBER(type, name) type (* RTCALL name) 1081 #else 1082 # define DECLCALLBACKMEMBER(type, name) type (RTCALL * name) 1083 #endif 1076 1084 1077 1085 /** @def DECLR3CALLBACKMEMBER … … 1082 1090 */ 1083 1091 #ifdef IN_RING3 1084 # define DECLR3CALLBACKMEMBER(type, name, args) type (RTCALL *name) args1092 # define DECLR3CALLBACKMEMBER(type, name, args) DECLCALLBACKMEMBER(type, name) args 1085 1093 #else 1086 1094 # define DECLR3CALLBACKMEMBER(type, name, args) RTR3PTR name … … 1094 1102 */ 1095 1103 #ifdef IN_RC 1096 # define DECLRCCALLBACKMEMBER(type, name, args) type (RTCALL * name)args1104 # define DECLRCCALLBACKMEMBER(type, name, args) DECLCALLBACKMEMBER(type, name) args 1097 1105 #else 1098 1106 # define DECLRCCALLBACKMEMBER(type, name, args) RTRCPTR name … … 1106 1114 */ 1107 1115 #ifdef IN_RING0 1108 # define DECLR0CALLBACKMEMBER(type, name, args) type (RTCALL *name) args1116 # define DECLR0CALLBACKMEMBER(type, name, args) DECLCALLBACKMEMBER(type, name) args 1109 1117 #else 1110 1118 # define DECLR0CALLBACKMEMBER(type, name, args) RTR0PTR name
Note:
See TracChangeset
for help on using the changeset viewer.