summaryrefslogtreecommitdiffhomepage
path: root/example/option_example/example.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-17 14:53:59 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-17 14:53:59 +0100
commitd54c2033eaaad5b6f9340b7cbaf8b3b037fb3cbe (patch)
treec9506ad751a589c0a734b26900f48581d1dde2ce /example/option_example/example.cc
parent15aac395a599c92016bd2d74a7c23ca6eea3d04d (diff)
chore: updated file structure.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/option_example/example.cc')
-rw-r--r--example/option_example/example.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/option_example/example.cc b/example/option_example/example.cc
new file mode 100644
index 0000000..0da9d49
--- /dev/null
+++ b/example/option_example/example.cc
@@ -0,0 +1,14 @@
+#include <ocl/crc_hash.hpp>
+#include <ocl/print.hpp>
+#include <ocl/option.hpp>
+
+int main(int argc, char** argv)
+{
+ ocl::option opt{ocl::eval_eq(nullptr, nullptr)};
+ opt.expect("is incorrect");
+
+ ocl::option opt2{ocl::eval_eq(argv, nullptr)};
+ opt2.expect("is incorrect");
+
+ return 0;
+}