From 01795764e95983e416f5db14dd5599206b9ea41b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 23 Jun 2021 19:39:37 +0200 Subject: lib: rename uc_add_proto_functions() to uc_add_functions() The naming is an artifact from before the introduction of the new type system. In the current code, there is nothing special about prototypes, they're simple object values. Also introduce a new singular uc_add_function() convenience macro while we're at it. Signed-off-by: Jo-Philipp Wich --- lib/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/math.c') diff --git a/lib/math.c b/lib/math.c index 0adfaf8..bc8efb6 100644 --- a/lib/math.c +++ b/lib/math.c @@ -160,5 +160,5 @@ static const uc_cfunction_list math_fns[] = { void uc_module_init(uc_vm *vm, uc_value_t *scope) { - uc_add_proto_functions(scope, math_fns); + uc_add_functions(scope, math_fns); } -- cgit v1.2.3