summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-29 14:41:51 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-29 14:45:50 +0200
commit9158f48048eb8d56f4e9e6281d0c0b497690b4ee (patch)
treeef72be3044a7464f0606216ddf17c5c38bb9e964 /examples
parent5cd5d2bbad9976a1068cb610b10d80f6267f575f (diff)
feat: io/print.hpp: new print include header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/cgi/CMakeLists.txt2
-rw-r--r--examples/equiv/CMakeLists.txt2
-rw-r--r--examples/must_pass/CMakeLists.txt2
-rw-r--r--examples/must_pass/must_pass.cc4
4 files changed, 7 insertions, 3 deletions
diff --git a/examples/cgi/CMakeLists.txt b/examples/cgi/CMakeLists.txt
index 6a93acf..391899f 100644
--- a/examples/cgi/CMakeLists.txt
+++ b/examples/cgi/CMakeLists.txt
@@ -9,4 +9,4 @@ project(
add_executable(CGI cgi.cc)
set_property(TARGET CGI PROPERTY CXX_STANDARD 20)
-target_include_directories(CGI PUBLIC ../../lib)
+target_include_directories(CGI PUBLIC ../../)
diff --git a/examples/equiv/CMakeLists.txt b/examples/equiv/CMakeLists.txt
index a8ed6d3..8b29e23 100644
--- a/examples/equiv/CMakeLists.txt
+++ b/examples/equiv/CMakeLists.txt
@@ -9,4 +9,4 @@ project(
add_executable(Equiv equiv.cc)
set_property(TARGET Equiv PROPERTY CXX_STANDARD 20)
-target_include_directories(Equiv PUBLIC ../../lib)
+target_include_directories(Equiv PUBLIC ../../)
diff --git a/examples/must_pass/CMakeLists.txt b/examples/must_pass/CMakeLists.txt
index 6fcd411..8ef683b 100644
--- a/examples/must_pass/CMakeLists.txt
+++ b/examples/must_pass/CMakeLists.txt
@@ -9,4 +9,4 @@ project(
add_executable(MustPass must_pass.cc)
set_property(TARGET MustPass PROPERTY CXX_STANDARD 20)
-target_include_directories(MustPass PUBLIC ../../lib)
+target_include_directories(MustPass PUBLIC ../../)
diff --git a/examples/must_pass/must_pass.cc b/examples/must_pass/must_pass.cc
index 47c01b8..dbe5bb4 100644
--- a/examples/must_pass/must_pass.cc
+++ b/examples/must_pass/must_pass.cc
@@ -5,6 +5,7 @@
*/
#include <lib/opt.hpp>
+#include <lib/io/print.hpp>
#include <string>
static const char do_hash(const std::string& in)
@@ -33,8 +34,11 @@ int main(int argc, char** argv)
{
// ... let's assume we fetch data from network...
+ snu::println("Testing data...");
+
auto opt = do_some("Ohio", "Ohio");
opt.expect("Checksum failed, Ohio isn't Ohio!");
+
return 0;
}