From 4a2d232f50a72ebf06e786b8f9b339dfd003f32e Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 12 Oct 2008 18:42:33 +0000 Subject: Remove leading "Botan " from result of version_string Add a comment explaining why these functions are compiled rather than inlined. --- src/utils/version.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/utils/version.cpp b/src/utils/version.cpp index 09deb53d6..3deed3149 100644 --- a/src/utils/version.cpp +++ b/src/utils/version.cpp @@ -8,14 +8,20 @@ namespace Botan { +/* + These are intentionally compiled rather than inlined, so an + application running against a shared library can test the true + version they are running against. +*/ + /************************************************* * Return the version as a string * *************************************************/ std::string version_string() { - return "Botan " + to_string(version_major()) + "." + - to_string(version_minor()) + "." + - to_string(version_patch()); + return to_string(version_major()) + "." + + to_string(version_minor()) + "." + + to_string(version_patch()); } /************************************************* -- cgit v1.2.3