public static int has_children(cef_domnode_t *self)
        {
            has_children_delegate d;
            var p = self->_has_children;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (has_children_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_children_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self));
        }
Esempio n. 2
0
 public static int has_children(cef_domnode_t* self)
 {
     has_children_delegate d;
     var p = self->_has_children;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (has_children_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_children_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self);
 }