mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: relocate STRING_QUOTE macro to macros.H
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -27,6 +27,7 @@ Description
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "string.H"
|
#include "string.H"
|
||||||
|
#include "macros.H"
|
||||||
#include "IOstreams.H"
|
#include "IOstreams.H"
|
||||||
#include "UList.H"
|
#include "UList.H"
|
||||||
#include "HashSet.H"
|
#include "HashSet.H"
|
||||||
@ -37,15 +38,10 @@ Description
|
|||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
// Macros to stringify macro contents.
|
|
||||||
#define STRINGIFY(content) #content
|
|
||||||
#define STRING_QUOTE(input) STRINGIFY(input)
|
|
||||||
|
|
||||||
#define PRINT_TYPEID(arg) \
|
#define PRINT_TYPEID(arg) \
|
||||||
Info<< typeid(arg).name() << " <= typeid of " << STRING_QUOTE(arg) << nl
|
Info<< typeid(arg).name() << " <= typeid of " << STRING_QUOTE(arg) << nl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
// Main program:
|
// Main program:
|
||||||
|
|
||||||
|
|||||||
@ -53,6 +53,13 @@ Description
|
|||||||
//- Map 'name' to 'Name' via the predefined macro CAPITALIZE_name
|
//- Map 'name' to 'Name' via the predefined macro CAPITALIZE_name
|
||||||
#define CAPITALIZE(name) CAPITALIZE_##name
|
#define CAPITALIZE(name) CAPITALIZE_##name
|
||||||
|
|
||||||
|
//- Helper macro for STRING_QUOTE
|
||||||
|
#define STRINGIFY(content) #content
|
||||||
|
|
||||||
|
//- Macro to stringify macro contents
|
||||||
|
#define STRING_QUOTE(input) STRINGIFY(input)
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -25,11 +25,7 @@ License
|
|||||||
|
|
||||||
#include "ensightGeoFile.H"
|
#include "ensightGeoFile.H"
|
||||||
#include "foamVersion.H"
|
#include "foamVersion.H"
|
||||||
|
#include "macros.H"
|
||||||
// Macros to stringify macro contents.
|
|
||||||
#define STRINGIFY(content) #content
|
|
||||||
#define STRING_QUOTE(input) STRINGIFY(input)
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user