Skip to content
Snippets Groups Projects
Commit c0b4c26d authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: correct erroneous PoutInFunction macro

- replace unusable operator() calls with simple '<<' operations
parent 72e67c7d
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2020 OpenCFD Ltd. Copyright (C) 2016-2021 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -327,13 +327,11 @@ extern messageStream SeriousError; ...@@ -327,13 +327,11 @@ extern messageStream SeriousError;
// for FUNCTION_NAME in file __FILE__ at line __LINE__ // for FUNCTION_NAME in file __FILE__ at line __LINE__
#define InfoInFunction InfoIn(FUNCTION_NAME) #define InfoInFunction InfoIn(FUNCTION_NAME)
//- Report an information message using Foam::Pout //- Report using Foam::Pout with functionName: prefix
// for functionName in file __FILE__ at line __LINE__
#define PoutIn(functionName) \ #define PoutIn(functionName) \
::Foam::Pout((functionName), __FILE__, __LINE__) ::Foam::Pout << (functionName) << ':'
//- Report an information message using Foam::Pout //- Report using Foam::Pout with FUNCTION_NAME prefix
// for FUNCTION_NAME in file __FILE__ at line __LINE__
#define PoutInFunction PoutIn(FUNCTION_NAME) #define PoutInFunction PoutIn(FUNCTION_NAME)
//- Write to Foam::Info if the Foam::infoDetailLevel is +ve non-zero (default) //- Write to Foam::Info if the Foam::infoDetailLevel is +ve non-zero (default)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment