example.cpp
来自「Boost provides free peer-reviewed portab」· C++ 代码 · 共 25 行
CPP
25 行
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library Example demonstrating how to preprocess the token stream generated by a #pragma directive http://www.boost.org/ Copyright (c) 2001-2008 Hartmut Kaiser. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)=============================================================================*////////////////////////////////////////////////////////////////////////////////// This special pragma is implemented by the interpret_pragma hook function// provided in the preprocess_pragma_output_hooks policy class. This // #pragma preprocesses the provided arguments in the current context.#pragma wave pp ( \ "#define A() \"some text\" and more\n" \ "#define B() 1.0\n" \ ) \ /**/ A() // this should produce: "some text" and moreB() // and this expands to 1.0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?