From f089a1a2321e77bfb5f60c2cd79dac14eac9bf63 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Jun 2017 18:30:13 +0300 Subject: Move project into intermediate sub-directory --- libhello/libhello/hello.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libhello/libhello/hello.hxx (limited to 'libhello/libhello/hello.hxx') diff --git a/libhello/libhello/hello.hxx b/libhello/libhello/hello.hxx new file mode 100644 index 0000000..ccc43c2 --- /dev/null +++ b/libhello/libhello/hello.hxx @@ -0,0 +1,28 @@ +// file: libhello/hello.hxx -*- C++ -*- + +#pragma once + +#include + +#include + +#include + +namespace hello +{ + // 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)); + } +} -- cgit v1.1