Add new verifier to handle identifiers and update codegen to be able to use them (closes #2522)

This commit is contained in:
Alexander Bock
2023-03-11 13:18:12 +01:00
parent 21cb90b7f8
commit 23ee2ee5da
15 changed files with 132 additions and 21 deletions

View File

@@ -96,8 +96,8 @@ namespace {
};
struct [[codegen::Dictionary(Layer), codegen::noexhaustive()]] Parameters {
// The unique identifier for this layer. May not contain '.' or spaces
std::string identifier;
// The unique identifier for this layer.
std::string identifier [[codegen::identifier()]];
// A human-readable name for the user interface. If this is omitted, the
// identifier is used instead