Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.1 KB

File metadata and controls

45 lines (36 loc) · 1.1 KB
title Charizing Operator (#@) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
#@
dev_langs
C++
helpviewer_keywords
preprocessor, operators
charizing operator
#@ preprocessor operator
ms.assetid dee03314-d27c-4063-965c-64756efbef22
caps.latest.revision 6
author corob-msft
ms.author corob
manager ghogen

Charizing Operator (#@)

Microsoft Specific

The charizing operator can be used only with arguments of macros. If #@ precedes a formal parameter in the definition of the macro, the actual argument is enclosed in single quotation marks and treated as a character when the macro is expanded. For example:

#define makechar(x)  #@x  

causes the statement

a = makechar(b);  

to be expanded to

a = 'b';  

The single-quotation character cannot be used with the charizing operator.

END Microsoft Specific

See Also

Preprocessor Operators