Exemplo n.º 1
0
        public static P5Scalar Close(Runtime runtime, P5Scalar arg)
        {
            var handle = arg.DereferenceHandle(runtime);
            bool res = handle.Close(runtime);

            return new P5Scalar(runtime, res);
        }
Exemplo n.º 2
0
        public void set_data_handle(string pack, P5Scalar handle)
        {
            var p5pack = runtime.SymbolTable.GetPackage(runtime, pack, false);
            var data = p5pack.GetGlob(runtime, "DATA", true);

            data.Handle = handle.DereferenceHandle(runtime);
        }