From c0b4c26dc1d128014f0c99cdcc133dd3b74ee45f Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 14 Sep 2021 17:35:17 +0200 Subject: [PATCH] BUG: correct erroneous PoutInFunction macro - replace unusable operator() calls with simple '<<' operations --- src/OpenFOAM/db/error/messageStream.H | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/OpenFOAM/db/error/messageStream.H b/src/OpenFOAM/db/error/messageStream.H index 81ba4252a0..034f90047e 100644 --- a/src/OpenFOAM/db/error/messageStream.H +++ b/src/OpenFOAM/db/error/messageStream.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2016-2020 OpenCFD Ltd. + Copyright (C) 2016-2021 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -327,13 +327,11 @@ extern messageStream SeriousError; // for FUNCTION_NAME in file __FILE__ at line __LINE__ #define InfoInFunction InfoIn(FUNCTION_NAME) -//- Report an information message using Foam::Pout -// for functionName in file __FILE__ at line __LINE__ +//- Report using Foam::Pout with functionName: prefix #define PoutIn(functionName) \ - ::Foam::Pout((functionName), __FILE__, __LINE__) + ::Foam::Pout << (functionName) << ':' -//- Report an information message using Foam::Pout -// for FUNCTION_NAME in file __FILE__ at line __LINE__ +//- Report using Foam::Pout with FUNCTION_NAME prefix #define PoutInFunction PoutIn(FUNCTION_NAME) //- Write to Foam::Info if the Foam::infoDetailLevel is +ve non-zero (default)