From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Utilities/TypeUtilities.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Runtime/Utilities/TypeUtilities.h (limited to 'Runtime/Utilities/TypeUtilities.h') diff --git a/Runtime/Utilities/TypeUtilities.h b/Runtime/Utilities/TypeUtilities.h new file mode 100644 index 0000000..3455701 --- /dev/null +++ b/Runtime/Utilities/TypeUtilities.h @@ -0,0 +1,20 @@ +// Utility functions and types for working with static types. +#pragma once + +template +struct IsSameType +{ + static const bool result = false; +}; + +template +struct IsSameType +{ + static const bool result = true; +}; + +template +inline bool IsOfType (Actual& value) +{ + return IsSameType::result; +} -- cgit v1.1-26-g67d0