aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/snippets
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-10 00:54:33 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-10 00:54:33 +0300
commitd190b28f88637b7e4e2569e423a70daca9ae025b (patch)
tree9cdf16e648b16018cfa599cb10383964b90741d4 /_posts/snippets
parentworkflows/jekyll: fix action usage (diff)
downloadjekyll-theme-d190b28f88637b7e4e2569e423a70daca9ae025b.tar.gz
jekyll-theme-d190b28f88637b7e4e2569e423a70daca9ae025b.zip
add snippets example
Diffstat (limited to '')
-rw-r--r--_posts/snippets/snippet.cpp7
-rw-r--r--_posts/snippets/snippet.hpp3
2 files changed, 10 insertions, 0 deletions
diff --git a/_posts/snippets/snippet.cpp b/_posts/snippets/snippet.cpp
new file mode 100644
index 0000000..bc4122e
--- /dev/null
+++ b/_posts/snippets/snippet.cpp
@@ -0,0 +1,7 @@
+#include "snippet.hpp"
+
+#include <iostream>
+
+void hello_snippets() {
+ std::cout << "Hello snippets!\n";
+}
diff --git a/_posts/snippets/snippet.hpp b/_posts/snippets/snippet.hpp
new file mode 100644
index 0000000..46556b6
--- /dev/null
+++ b/_posts/snippets/snippet.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+void hello_snippets();