aboutsummaryrefslogtreecommitdiff
path: root/include/playground.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/playground.h')
-rw-r--r--include/playground.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/playground.h b/include/playground.h
new file mode 100644
index 0000000..c224908
--- /dev/null
+++ b/include/playground.h
@@ -0,0 +1,12 @@
+#ifndef PLAYGROUND_H
+#define PLAYGROUND_H
+
+extern "C" void halt();
+
+template<typename T, size_t N>
+static inline
+size_t SizeOfArray(const T(&)[N]) {
+ return N;
+}
+
+#endif