7 #define CL_SV_NO_RANGECHECKS
13 #include "cln/malloc.h"
17 const cl_SV_any copy (const cl_SV_any& src)
19 var uintL len = src.length();
20 var cl_heap_SV_any* hv = (cl_heap_SV_any*) malloc_hook(sizeof(cl_heap_SV_any)+sizeof(cl_gcobject)*len);
22 hv->type = src.pointer_type();
23 new (&hv->v) cl_SV_inner<cl_gcobject> (len);
24 for (var uintL i = 0; i < len; i++)
25 init1(cl_gcobject, hv->v[i]) (src[i]);