Esempio n. 1
0
 public static void Free(NSJSExceptionInfo *exception)
 {
     if (exception != null)
     {
         NSJSMemoryManagement.Free(exception);
     }
 }
Esempio n. 2
0
            public static NSJSExceptionInfo *New()
            {
                NSJSExceptionInfo *exception = (NSJSExceptionInfo *)NSJSMemoryManagement.Alloc(sizeof(NSJSExceptionInfo));

                if (exception == null)
                {
                    throw new InvalidOperationException("exception");
                }
                if (exception->NowIsWrong)
                {
                    exception->NowIsWrong = false;
                }
                return(exception);
            }