From 3dc9c1698aa18be1f5a0c67a70a4e6cd655a3da4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 29 Apr 2017 16:20:50 +0300 Subject: Add hxx extension for headers and lib prefix for library dirs --- libhello/hello.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libhello/hello.hxx (limited to 'libhello/hello.hxx') diff --git a/libhello/hello.hxx b/libhello/hello.hxx new file mode 100644 index 0000000..ccc43c2 --- /dev/null +++ b/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