Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0e996431
Commit
0e996431
authored
Aug 02, 2018
by
Mark OLESEN
Browse files
STYLE: relocate STRING_QUOTE macro to macros.H
parent
b056202e
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/test/cplusplus1/Test-cpluplus1.C
View file @
0e996431
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017
-2018
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -27,6 +27,7 @@ Description
\*---------------------------------------------------------------------------*/
#include
"string.H"
#include
"macros.H"
#include
"IOstreams.H"
#include
"UList.H"
#include
"HashSet.H"
...
...
@@ -37,15 +38,10 @@ Description
using
namespace
Foam
;
// Macros to stringify macro contents.
#define STRINGIFY(content) #content
#define STRING_QUOTE(input) STRINGIFY(input)
#define PRINT_TYPEID(arg) \
Info<< typeid(arg).name() << " <= typeid of " << STRING_QUOTE(arg) << nl
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:
...
...
src/OpenFOAM/include/macros.H
View file @
0e996431
...
...
@@ -53,6 +53,13 @@ Description
//- Map 'name' to 'Name' via the predefined macro 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
...
...
src/fileFormats/ensight/file/ensightGeoFile.C
View file @
0e996431
...
...
@@ -25,11 +25,7 @@ License
#include
"ensightGeoFile.H"
#include
"foamVersion.H"
// Macros to stringify macro contents.
#define STRINGIFY(content) #content
#define STRING_QUOTE(input) STRINGIFY(input)
#include
"macros.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment