From 9c09097156dc70315364d27e61daef19b2844139 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 17 Jun 2026 09:05:21 +0200 Subject: initial commit --- ttwhy/lib.cppm | 11 +++++++++++ ttwhy/main.cpp | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ttwhy/lib.cppm create mode 100644 ttwhy/main.cpp (limited to 'ttwhy') diff --git a/ttwhy/lib.cppm b/ttwhy/lib.cppm new file mode 100644 index 0000000..c7527ee --- /dev/null +++ b/ttwhy/lib.cppm @@ -0,0 +1,11 @@ +export module ttwhy; + +namespace ttwhy +{ + + export auto multiply(int lhs, int rhs) -> int + { + return lhs * rhs; + } + +} // namespace ttwhy diff --git a/ttwhy/main.cpp b/ttwhy/main.cpp new file mode 100644 index 0000000..fdaba88 --- /dev/null +++ b/ttwhy/main.cpp @@ -0,0 +1,14 @@ +#include + +#include + +import ttwhy; + +auto main() -> int +{ + auto context = asio::io_context{}; + + std::println("The answer is {}", ttwhy::multiply(6, 7)); + + context.run(); +} -- cgit v1.2.3