mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: reduce dependencies for foamVersion.H
- have printBuildInfo output to std::ostream - removed extraneous include "stdFoam.H" ENH: revert to pre-processor defines for hard-coded paths (#1712) - redundant information, but more robust at run-time without relying on initialization order
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2020 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -51,9 +51,8 @@ void testExtraction(const std::string& str)
|
||||
|
||||
int main()
|
||||
{
|
||||
Info
|
||||
<< "\nVersion information (function)" << nl;
|
||||
foamVersion::printBuildInfo();
|
||||
Info<< "\nVersion information (function)" << nl;
|
||||
foamVersion::printBuildInfo(Info().stdStream());
|
||||
|
||||
Info
|
||||
<< "\nVersion information (macros)" << nl
|
||||
|
||||
@ -8,6 +8,6 @@ namespace Foam
|
||||
void printTest()
|
||||
{
|
||||
Info<< nl;
|
||||
foamVersion::printBuildInfo();
|
||||
foamVersion::printBuildInfo(Info().stdStream());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user