aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-runtime/MetadataBase.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-07-07 19:30:47 -0700
committerrtk0c <[email protected]>2022-07-07 19:30:47 -0700
commita98b0495a957ed15900c052bcad00b3c48367546 (patch)
tree10945d897ba6671c707e1c9866f235c0e630c08f /source/20-codegen-runtime/MetadataBase.hpp
parent6839736b8283a59eb743e1f6058c7d266a3e7f36 (diff)
Changeset: 79 Initial work on fixing codegen for the main project, add enum underlying type (EUT) scanning capability
Diffstat (limited to 'source/20-codegen-runtime/MetadataBase.hpp')
-rw-r--r--source/20-codegen-runtime/MetadataBase.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/20-codegen-runtime/MetadataBase.hpp b/source/20-codegen-runtime/MetadataBase.hpp
index c1ad894..f84a152 100644
--- a/source/20-codegen-runtime/MetadataBase.hpp
+++ b/source/20-codegen-runtime/MetadataBase.hpp
@@ -30,7 +30,7 @@ struct TypeMethodInfo {
struct TypeInfo {
TypeId typeId;
std::string_view name;
- std::span<const TypeInfo*> parents;
+ std::span<const TypeInfo* const> parents;
std::span<const TypePropertyInfo> properties;
std::span<const TypeMethodInfo> methods;
@@ -42,12 +42,12 @@ struct TypeInfo {
template <typename T>
const TypeInfo* GetTypeInfo();
-// NOTE: implemented by generating specializations; not-generated ones should generated an error in the linking phase
+// NOTE: implemented by generating specializations
template <typename TEnum>
-std::string_view EnumToString(TEnum value);
+std::string_view EnumToString(TEnum value) = delete;
-// NOTE: implemented by generating specializations; not-generated ones should generated an error in the linking phase
+// NOTE: implemented by generating specializations
template <typename TEnum>
-std::optional<TEnum> EnumFromString(std::string_view str);
+std::optional<TEnum> EnumFromString(std::string_view str) = delete;
} // namespace Metadata