From bc08aa42d19f70a1299bccd44242ed626adfea5e Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 5 Aug 2025 11:14:21 +0200 Subject: [PATCH 1/2] feat: added return function --- .../function/control-audit.md | 4 ++ .../runtime_definition/function/control.md | 62 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 definitions/standard/runtime_definition/function/control-audit.md create mode 100644 definitions/standard/runtime_definition/function/control.md diff --git a/definitions/standard/runtime_definition/function/control-audit.md b/definitions/standard/runtime_definition/function/control-audit.md new file mode 100644 index 0000000..5d9252b --- /dev/null +++ b/definitions/standard/runtime_definition/function/control-audit.md @@ -0,0 +1,4 @@ +# 05.08.2025 + +## Added +- return \ No newline at end of file diff --git a/definitions/standard/runtime_definition/function/control.md b/definitions/standard/runtime_definition/function/control.md new file mode 100644 index 0000000..e539dfc --- /dev/null +++ b/definitions/standard/runtime_definition/function/control.md @@ -0,0 +1,62 @@ +## return +Will return the given value. + +```json +{ + "runtime_name": "std::control::return", + "runtime_parameter_definitions": [ + { + "data_type_identifier": { + "type": { + "GenericKey": "T" + } + }, + "runtime_name": "value", + "name": [ + { + "code": "en-US", + "content": "Return Value" + } + ], + "description": [ + { + "code": "en-US", + "content": "The value to be returned." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "This value will be returned to the upper context." + } + ] + } + ], + "return_type_identifier": { + "type": { + "GenericKey": "T" + } + }, + "name": [ + { + "code": "en-US", + "content": "Return" + } + ], + "description": [ + { + "code": "en-US", + "content": "Returns the specified value to the upper context." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns the specified value to the upper context." + } + ], + "generic_keys": ["R"], + "deprecation_message": [], + "throws_error": false +} +``` From 953855b27c4afef7e3f80e4fd1d1b2287dc279dd Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 5 Aug 2025 11:15:25 +0200 Subject: [PATCH 2/2] Update control.md --- definitions/standard/runtime_definition/function/control.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/standard/runtime_definition/function/control.md b/definitions/standard/runtime_definition/function/control.md index e539dfc..f21155a 100644 --- a/definitions/standard/runtime_definition/function/control.md +++ b/definitions/standard/runtime_definition/function/control.md @@ -8,7 +8,7 @@ Will return the given value. { "data_type_identifier": { "type": { - "GenericKey": "T" + "GenericKey": "R" } }, "runtime_name": "value", @@ -34,7 +34,7 @@ Will return the given value. ], "return_type_identifier": { "type": { - "GenericKey": "T" + "GenericKey": "R" } }, "name": [