Changeset 309 in vbox
- Timestamp:
- Jan 25, 2007 3:57:38 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17858
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r1 r309 430 430 * @param type The return type of the function declaration. 431 431 */ 432 #ifdef __cplusplus 432 #ifdef __GNUC__ 433 # define DECLINLINE(type) static inline type 434 #elif defined(__cplusplus) 433 435 # define DECLINLINE(type) inline type 434 #else 435 # ifdef __GNUC__ 436 # define DECLINLINE(type) static inline type 437 # elif defined(_MSC_VER) 438 # define DECLINLINE(type) _inline type 439 # else 440 # define DECLINLINE(type) inline type 441 # endif 436 #elif defined(_MSC_VER) 437 # define DECLINLINE(type) _inline type 438 #else 439 # define DECLINLINE(type) inline type 442 440 #endif 443 441 … … 459 457 /** @def IN_RT_R3 460 458 * Used to indicate whether we're inside the same link module as 461 * the HC Ring-3 Runtime Library. 459 * the HC Ring-3 Runtime Library. 462 460 */ 463 461 /** @def RTR3DECL(type) -
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp
r301 r309 72 72 } 73 73 74 staticDECLINLINE(int) vbglHandleHeapEnter (void)74 DECLINLINE(int) vbglHandleHeapEnter (void) 75 75 { 76 76 int rc = RTSemFastMutexRequest(g_vbgldata.mutexHGCMHandle); … … 82 82 } 83 83 84 staticDECLINLINE(void) vbglHandleHeapLeave (void)84 DECLINLINE(void) vbglHandleHeapLeave (void) 85 85 { 86 86 RTSemFastMutexRelease(g_vbgldata.mutexHGCMHandle); -
trunk/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp
r295 r309 156 156 157 157 158 staticDECLINLINE(void *) vbglPhysHeapBlock2Data (VBGLPHYSHEAPBLOCK *pBlock)158 DECLINLINE(void *) vbglPhysHeapBlock2Data (VBGLPHYSHEAPBLOCK *pBlock) 159 159 { 160 160 return (void *)(pBlock? (char *)pBlock + sizeof (VBGLPHYSHEAPBLOCK): NULL); 161 161 } 162 162 163 staticDECLINLINE(VBGLPHYSHEAPBLOCK *) vbglPhysHeapData2Block (void *p)163 DECLINLINE(VBGLPHYSHEAPBLOCK *) vbglPhysHeapData2Block (void *p) 164 164 { 165 165 VBGLPHYSHEAPBLOCK *pBlock = (VBGLPHYSHEAPBLOCK *)(p? (char *)p - sizeof (VBGLPHYSHEAPBLOCK): NULL); … … 171 171 } 172 172 173 staticDECLINLINE(int) vbglPhysHeapEnter (void)173 DECLINLINE(int) vbglPhysHeapEnter (void) 174 174 { 175 175 int rc = RTSemFastMutexRequest(g_vbgldata.mutexHeap); … … 181 181 } 182 182 183 staticDECLINLINE(void) vbglPhysHeapLeave (void)183 DECLINLINE(void) vbglPhysHeapLeave (void) 184 184 { 185 185 RTSemFastMutexRelease(g_vbgldata.mutexHeap);
Note:
See TracChangeset
for help on using the changeset viewer.