VirtualBox

Ignore:
Timestamp:
Sep 5, 2017 2:53:44 PM (7 years ago)
Author:
vboxsync
Message:

Turned whole file #if[n]def VBGL_VBOXGUEST tests into short ones with #error inside.

Location:
trunk/src/VBox/Additions/common/VBoxGuest/lib
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibCrOgl.cpp

    r68645 r68653  
    2525 */
    2626
    27 /* Entire file is ifdef'ed with !VBGL_VBOXGUEST */
    28 #ifdef VBGL_VBOXGUEST
    29 # error "VBGL_VBOXGUEST should not be defined"
    30 #endif
    3127
    3228/*********************************************************************************************************************************
     
    3531#include <iprt/string.h>
    3632#include "VBoxGuestR0LibInternal.h"
     33
     34#ifdef VBGL_VBOXGUEST
     35# error "This file shouldn't be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest.  It's client code."
     36#endif
    3737
    3838
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibGenericRequest.cpp

    r68645 r68653  
    2525 */
    2626
     27
     28/*********************************************************************************************************************************
     29*   Header Files                                                                                                                 *
     30*********************************************************************************************************************************/
    2731#include "VBoxGuestR0LibInternal.h"
    2832#include <iprt/asm.h>
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCM.cpp

    r68645 r68653  
    3131*   Header Files                                                                                                                 *
    3232*********************************************************************************************************************************/
    33 /* Entire file is ifdef'ed with !VBGL_VBOXGUEST */
    34 #ifndef VBGL_VBOXGUEST
    35 
    3633#include "VBoxGuestR0LibInternal.h"
    3734
     
    4037#include <iprt/string.h>
    4138
     39#ifdef VBGL_VBOXGUEST
     40# error "This file shouldn't be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest.  It's client code."
     41#endif
     42
     43
     44/*********************************************************************************************************************************
     45*   Defined Constants And Macros                                                                                                 *
     46*********************************************************************************************************************************/
    4247#define VBGL_HGCM_ASSERT_MSG AssertReleaseMsg
    4348
     
    220225}
    221226
    222 #endif /* !VBGL_VBOXGUEST */
    223 
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp

    r68645 r68653  
    2424 * terms and conditions of either the GPL or the CDDL or both.
    2525 */
    26 
    27 /* Entire file is ifdef'ed with VBGL_VBOXGUEST */
    28 #ifdef VBGL_VBOXGUEST
    2926
    3027
     
    4340#include <iprt/thread.h>
    4441#include <iprt/time.h>
     42
     43#ifndef VBGL_VBOXGUEST
     44# error "This file should only be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest."
     45#endif
    4546
    4647
     
    10721073#endif /* ARCH_BITS == 64 */
    10731074
    1074 #endif /* VBGL_VBOXGUEST */
    1075 
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibIdc.cpp

    r68550 r68653  
    3333#include <VBox/VBoxGuest.h>
    3434/*#include <iprt/asm.h>*/
     35
     36#ifdef VBGL_VBOXGUEST
     37# error "This file shouldn't be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest.  It's client code."
     38#endif
     39
    3540
    3641
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibMouse.cpp

    r68645 r68653  
    2525 */
    2626
     27/*********************************************************************************************************************************
     28*   Header Files                                                                                                                 *
     29*********************************************************************************************************************************/
    2730#include "VBoxGuestR0LibInternal.h"
     31#ifdef VBGL_VBOXGUEST
     32# error "This file shouldn't be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest.  It's client code."
     33#endif
     34
    2835
    2936/**
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibPhysHeap.cpp

    r68645 r68653  
    2525 */
    2626
     27/*********************************************************************************************************************************
     28*   Header Files                                                                                                                 *
     29*********************************************************************************************************************************/
    2730#include "VBoxGuestR0LibInternal.h"
    2831
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibSharedFolders.c

    r68555 r68653  
    2525 */
    2626
    27 /* Entire file is ifdef'ed with !VBGL_VBOXGUEST */
    28 #ifndef VBGL_VBOXGUEST
    29 
    30 
    3127/*********************************************************************************************************************************
    3228*   Header Files                                                                                                                 *
     
    4036#include <iprt/string.h>
    4137
     38#ifdef VBGL_VBOXGUEST
     39# error "This file shouldn't be part of the VBoxGuestR0LibBase library that is linked into VBoxGuest.  It's client code."
     40#endif
     41
    4242
    4343/*********************************************************************************************************************************
     
    704704}
    705705
    706 
    707 #endif /* !VBGL_VBOXGUEST */
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibVMMDev.cpp

    r68645 r68653  
    2525 */
    2626
     27/*********************************************************************************************************************************
     28*   Header Files                                                                                                                 *
     29*********************************************************************************************************************************/
    2730#include "VBoxGuestR0LibInternal.h"
    2831
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VbglR0CanUsePhysPageList.cpp

    r68645 r68653  
    2525 */
    2626
     27/*********************************************************************************************************************************
     28*   Header Files                                                                                                                 *
     29*********************************************************************************************************************************/
    2730#include "VBoxGuestR0LibInternal.h"
    2831
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette