From a0bb71be5864588fd0f33ec524c8a3b32dcc3a59 Mon Sep 17 00:00:00 2001 From: Nik Date: Sat, 29 Jun 2024 11:53:43 +0200 Subject: [PATCH] includes/std: Added std::core::execute_function() --- includes/std/core.pat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/std/core.pat b/includes/std/core.pat index 31d416a..df0403d 100644 --- a/includes/std/core.pat +++ b/includes/std/core.pat @@ -164,4 +164,13 @@ namespace auto std::core { fn set_pattern_comment(ref auto pattern, str comment) { builtin::std::core::set_pattern_comment(pattern, name); }; + + /** + Executes the function with the given name, passing in all given arguments + @param function_name The namespace-prefixed name of the function + @param args Arguments to pass to the function + */ + fn execute_function(str function_name, auto ... args) { + builtin::std::core::execute_function(function_name, args); + }; }