public static int will_collate(cef_print_settings_t *self)
        {
            will_collate_delegate d;
            var p = self->_will_collate;

            if (p == _p13)
            {
                d = _d13;
            }
            else
            {
                d = (will_collate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(will_collate_delegate));
                if (_p13 == IntPtr.Zero)
                {
                    _d13 = d; _p13 = p;
                }
            }
            return(d(self));
        }
示例#2
0
 public static int will_collate(cef_print_settings_t* self)
 {
     will_collate_delegate d;
     var p = self->_will_collate;
     if (p == _p13) { d = _d13; }
     else
     {
         d = (will_collate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(will_collate_delegate));
         if (_p13 == IntPtr.Zero) { _d13 = d; _p13 = p; }
     }
     return d(self);
 }