From 3b390967e7c2ee4ac6d1a67c77f40ed43005e012 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 20 Nov 2016 11:27:07 +0100 Subject: Initial --- global.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 global.h (limited to 'global.h') diff --git a/global.h b/global.h new file mode 100644 index 0000000..522dd1f --- /dev/null +++ b/global.h @@ -0,0 +1,20 @@ +#pragma once + +#include + +using i64 = int64_t; +using u64 = uint64_t; + +#define TYPESUBCLASS(parenttype,newtype) \ + class newtype : public parenttype{ \ + public: \ + using parenttype::parenttype; \ + using parenttype::operator=; \ + } + +#define TYPESUBCLASSTEMPLATE(parenttype,parenttemplate,newtype) \ + class newtype : public parenttype parenttemplate{ \ + public: \ + using parenttype parenttemplate::parenttype; \ + using parenttype parenttemplate::operator=; \ + } -- cgit v1.2.3-70-g09d2