diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-11-20 11:27:07 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-11-20 11:27:07 +0100 |
commit | 3b390967e7c2ee4ac6d1a67c77f40ed43005e012 (patch) | |
tree | 4be72c3ed32277329c472c1dc72793577ea29195 /global.h |
Initial
Diffstat (limited to 'global.h')
-rw-r--r-- | global.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <cstdint> + +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=; \ + } |