From: fennecdjay Date: Thu, 26 Sep 2019 00:14:34 +0000 (+0200) Subject: :fire: Add missing function X-Git-Tag: nightly~2199^2~10 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c7de39ea72800b221653c3783fff8f7f6baa524e;p=gwion.git :fire: Add missing function --- 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; +}