includes/std: Added std::core::execute_function()

This commit is contained in:
Nik
2024-06-29 11:53:43 +02:00
committed by GitHub
parent c7fc39ac19
commit a0bb71be58

View File

@@ -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);
};
}