KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q47760: The _QC Predefined Preprocessing Macro

Article: Q47760
Product(s): See article
Version(s): 1.00 1.01 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | S_C S_QuickASM | mspl13_c
Last Modified: 10-OCT-1989

The _QC macro is automatically defined when compiling with QuickC and
undefined when compiling with Microsoft C Optimizing Compiler. This
predefined macro can be used to conditionally compile parts of code
that are unique to one compiler or another. For example, if inline
assembly is used in an application program, it might be a good idea to
check the condition of _QC macro before compiling that section of
code, as follows:

#ifdef _QC      /* check to see if compiling in QuickC */

#define _enable()  _asm { sti }
#define _disable() _asm { cli }

#endif

This macro was not documented in the QuickC manuals or in the
README.DOC. Support for this macro is not guaranteed in future
releases of the QuickC product.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.