diff options
Diffstat (limited to 'source/20-codegen-runtime')
-rw-r--r-- | source/20-codegen-runtime/MacrosCodegen.hpp | 7 | ||||
-rw-r--r-- | source/20-codegen-runtime/Metadata.cpp | 1 | ||||
-rw-r--r-- | source/20-codegen-runtime/Metadata.hpp | 4 | ||||
-rw-r--r-- | source/20-codegen-runtime/MetadataBase.cpp | 1 | ||||
-rw-r--r-- | source/20-codegen-runtime/MetadataBase.hpp | 14 |
5 files changed, 27 insertions, 0 deletions
diff --git a/source/20-codegen-runtime/MacrosCodegen.hpp b/source/20-codegen-runtime/MacrosCodegen.hpp new file mode 100644 index 0000000..6803023 --- /dev/null +++ b/source/20-codegen-runtime/MacrosCodegen.hpp @@ -0,0 +1,7 @@ +// NOTE: contents of this file is coupled with buildtools/codegen/ +// when updating, change both sides at the same time + +#pragma once + +#define BRUSSEL_CLASS(name, options) +#define BRUSSEL_ENUM(name, options) diff --git a/source/20-codegen-runtime/Metadata.cpp b/source/20-codegen-runtime/Metadata.cpp new file mode 100644 index 0000000..ee32054 --- /dev/null +++ b/source/20-codegen-runtime/Metadata.cpp @@ -0,0 +1 @@ +#include "Metadata.hpp" diff --git a/source/20-codegen-runtime/Metadata.hpp b/source/20-codegen-runtime/Metadata.hpp new file mode 100644 index 0000000..a038c15 --- /dev/null +++ b/source/20-codegen-runtime/Metadata.hpp @@ -0,0 +1,4 @@ +#pragma once + +#include "MacrosCodegen.hpp" +#include "MetadataBase.hpp" diff --git a/source/20-codegen-runtime/MetadataBase.cpp b/source/20-codegen-runtime/MetadataBase.cpp new file mode 100644 index 0000000..3ccf870 --- /dev/null +++ b/source/20-codegen-runtime/MetadataBase.cpp @@ -0,0 +1 @@ +#include "MetadataBase.hpp" diff --git a/source/20-codegen-runtime/MetadataBase.hpp b/source/20-codegen-runtime/MetadataBase.hpp new file mode 100644 index 0000000..8be668d --- /dev/null +++ b/source/20-codegen-runtime/MetadataBase.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <optional> +#include <string_view> + +namespace Metadata { + +template <class TEnum> +std::string_view EnumToString(TEnum value); + +template <class TEnum> +std::optional<TEnum> EnumFromString(std::string_view str); + +} // namespace Metadata |