Preprocessor
De cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
El preprocesador se ejecuta antes de la compilación comienza. El resultado de preprocesamiento es único archivo que después se pasan al compilador real .
Original:
The preprocessor runs before the compilation begins. The result of preprocessing is single file which is then passed to the actual compiler.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Directivas
Las directivas de preprocesamiento de controlar el comportamiento del preprocesador. Cada directiva ocupa una línea y tiene el siguiente formato:
Original:
The preprocessing directives control the behavior of the preprocessor. Each directive occupies one line and has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
-
#
carácterOriginal:#
characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - instrucción pre-procesamiento (uno de
define
,undef
,include
,if
,ifdef
,ifndef
,else
,elif
,endif
,line
,error
,warning
,pragma
)Original:preprocessing instruction (one ofdefine
,undef
,include
,if
,ifdef
,ifndef
,else
,elif
,endif
,line
,error
,warning
,pragma
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - argumentos (depende de la instrucción)Original:arguments (depends on the instruction)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - salto de líneaOriginal:line breakThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La directiva null (
#
seguido por un salto de línea) está permitido y no tiene ningún efecto .Original:
The null directive (
#
followed by a line break) is allowed and has no effect.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Capacidades
El preprocesador tiene la capacidad de traducción de archivos de origen:
Original:
The preprocessor has the source file translation capabilities:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- ' compilación de las partes del archivo de origen (controlado por la directiva
#if
,#ifdef
,#ifndef
,#else
,#elif
y#endif
) .Original:condicionalmente</div> compile of parts of source file (controlled by directiveOriginal:conditionallyThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#if
,#ifdef
,#ifndef
,#else
,#elif
and#endif
).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ' replace' macros de texto, mientras que, posiblemente, la concatenación o citando identificadores (controlado por directivas
#define
y#undef
, y los operadores#
y##
)Original:replace text macros while possibly concatenating or quoting identifiers (controlled by directives#define
and#undef
, and operators#
and##
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 'include' otros archivos (controlado por
#include
Directiva)Original:include other files (controlled by directive#include
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - causar un 'warning' (controlado por la directiva
#warning
)Original:cause a warning (controlled by directive#warning
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - causar un 'error' (controlado por la directiva
#error
)Original:cause an error (controlled by directive#error
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los siguientes aspectos del preprocesador se puede controlar:
Original:
The following aspects of the preprocessor can be controlled:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- ' comportamiento (controlado por directivas
#pragma
)Original:aplicación definida</div> behavior (controlled by directivesOriginal:implementation definedThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#pragma
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ' disponible para el preprocesador (controlado por directivas
#line
)Original:nombre de archivo y la información de línea</div> available to the preprocessor (controlled by directivesOriginal:file name and line informationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#line
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.