From c7de39ea72800b221653c3783fff8f7f6baa524e Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 26 Sep 2019 02:14:34 +0200 Subject: [PATCH] :fire: Add missing function --- src/oo/value.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/oo/value.c b/src/oo/value.c index b728e456..7b2c587e 100644 --- a/src/oo/value.c +++ b/src/oo/value.c @@ -28,3 +28,9 @@ ANN Value new_value(MemPool p, const Type type, const m_str name) { a->ref = new_refcount(p, free_value); return a; } + +ANN void valuefrom(const Env env, struct ValueFrom_ *from) { + from->owner = env->curr; + from->owner_class = env->class_def; + from->ctx = env->context; +} -- 2.43.0