Пример #1
0
        public Cdn.Stack Copy()
        {
            IntPtr raw_ret = cdn_stack_copy(Handle);

            Cdn.Stack ret = raw_ret == IntPtr.Zero ? null : (Cdn.Stack)GLib.Opaque.GetOpaque(raw_ret, typeof(Cdn.Stack), true);
            return(ret);
        }
Пример #2
0
        private double ComputeDelayedDelay(Instruction[] instructions, Expression e, InstructionCustomOperator instr)
        {
            Cdn.Stack stack = new Cdn.Stack(e.StackSize);

            foreach (Cdn.Instruction i in instructions)
            {
                if (i == instr)
                {
                    return(stack.Pop());
                }

                i.Execute(stack);
            }

            return(0);
        }
Пример #3
0
 public static void FunctionExecute(Cdn.MathFunctionType type, Cdn.StackArgs argdim, Cdn.Stack stack)
 {
     cdn_math_function_execute((int)type, argdim == null ? IntPtr.Zero : argdim.Handle, stack == null ? IntPtr.Zero : stack.Handle);
 }
Пример #4
0
 public void Execute(Cdn.Stack stack)
 {
     cdn_instruction_execute(Handle, stack == null ? IntPtr.Zero : stack.Handle);
 }
Пример #5
0
 public void InitializeStack(Cdn.Stack stack)
 {
     cdn_expression_tree_iter_initialize_stack(Handle, stack == null ? IntPtr.Zero : stack.Handle);
 }
Пример #6
0
 public void Execute(Cdn.Stack stack)
 {
     cdn_operator_execute(Handle, stack == null ? IntPtr.Zero : stack.Handle);
 }
Пример #7
0
 void InvokeNative(Cdn.Stack stack, Cdn.StackArgs argdim)
 {
     native_cb(stack == null ? IntPtr.Zero : stack.Handle, argdim == null ? IntPtr.Zero : argdim.Handle, __data);
 }