diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 16:50:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 18:14:12 +0200 |
commit | bb6a97a8f3e4e046442eaf8814b30d9c9995bfd2 (patch) | |
tree | 1334a6d70ca46a3955ea4895a0f2522992d10444 /hello/hello | |
parent | 45afda9752d8d30bf3c606d63f7a718b32ebe7c8 (diff) |
Build infrastructure update
Diffstat (limited to 'hello/hello')
-rw-r--r-- | hello/hello | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/hello/hello b/hello/hello index 4f85114..75a47a0 100644 --- a/hello/hello +++ b/hello/hello @@ -4,8 +4,25 @@ #include <string> +#include <format/format> + +#include <hello/export> + namespace hello { - void - say (const std::string& name); + // If you compare this interface to version 1.0, then you will notice that + // while it is API/source-compatible (the signature of say() is unchanged) + // it is not ABI/binary-compatible (say() is now inline). + // + // Notice also that inline say() calls format() which means libformat is an + // interface dependency of libhello. + + LIBHELLO_EXPORT void + say_formatted (const std::string& message); + + inline void + say (const std::string& name) + { + say_formatted (format ("Hello", name)); + } } |