Exemplo n.º 1
0
        public static int get_depth(cef_xml_reader_t *self)
        {
            get_depth_delegate d;
            var p = self->_get_depth;

            if (p == _p8)
            {
                d = _d8;
            }
            else
            {
                d = (get_depth_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_depth_delegate));
                if (_p8 == IntPtr.Zero)
                {
                    _d8 = d; _p8 = p;
                }
            }
            return(d(self));
        }
 public static int get_depth(cef_xml_reader_t* self)
 {
     get_depth_delegate d;
     var p = self->_get_depth;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_depth_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_depth_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }