|
[Sponsors] |
April 22, 2014, 00:33 |
macro definition about typename
|
#1 |
Member
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 12 |
hi !
I am interested in a line of code , that is Code:
defineTemplateTypeNameAndDebug(volScalarField, 0); Code:
00154 #define defineTemplateTypeNameAndDebug(Type, DebugSwitch) \ 00155 defineTemplateTypeNameAndDebugWithName(Type, #Type, DebugSwitch) please help me : Am I right ? I never know the symbol # could be used for that ! is it defined in openfoam or is it default C++ behavior ? thank you very much! |
|
April 23, 2014, 00:17 |
|
#2 |
Member
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 12 |
hi !
I have found it !I am right ! it is default C++ behavior !Stringfication #Type is "Type" for example #volScalarField is "volScalarField" thanks! |
|
Tags |
definetemplatetypename |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macros TypeName() , ClassName(), defineTypeNameAndDebug()... | jaswi | OpenFOAM Running, Solving & CFD | 2 | June 15, 2020 11:52 |
StarCCM+ Command line options and Macro execution | isidp | STAR-CCM+ | 8 | January 29, 2013 06:00 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
HELP! Fluent macro definition | hamish888 | FLUENT | 1 | November 1, 2010 07:12 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 13:37 |