예제 #1
0
        public static int is_constructor(cef_v8stack_frame_t *self)
        {
            is_constructor_delegate d;
            var p = self->_is_constructor;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (is_constructor_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_constructor_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }
예제 #2
0
 public static int is_constructor(cef_v8stack_frame_t* self)
 {
     is_constructor_delegate d;
     var p = self->_is_constructor;
     if (p == _pa) { d = _da; }
     else
     {
         d = (is_constructor_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_constructor_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }