Examples of #pragma hdrstop Directives


/************************************************************************
*

In the following example, only the header h1.h will be precompiled using the file default.pch (provided /Si or /Fi are specified). If /Sidave.pch /Fijohn.pch are specified, the compiler will look for the precompiled headers in john.pch and will regenerate them if they are not found or not usable.

                                                                        *
************************************************************************/


    #include "h1.h"
    #pragma hdrstop
    #include "h2.h"
    main () {}


/************************************************************************
*

In the following example, no precompiled headers will be generated or used for the compilation, even if /Fi or /Si are specified.

                                                                        *
************************************************************************/


    #pragma hdrstop
    #include "h1.h"
    #include "h2.h"
    main () {}