_ptr == IntPtr.Zero, not _ptr == null

This commit is contained in:
Garry Newman 2016-10-26 16:11:41 +01:00
parent bb1980eb84
commit b50c20a5ed
6 changed files with 3231 additions and 3231 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -104,7 +104,7 @@ namespace Generator
if ( methodDef.NeedsSelfPointer ) if ( methodDef.NeedsSelfPointer )
{ {
WriteLine( $"if ( _ptr == null ) throw new System.Exception( \"{classname} _ptr is null!\" );" ); WriteLine( $"if ( _ptr == IntPtr.Zero ) throw new System.Exception( \"{classname} _ptr is null!\" );" );
WriteLine(); WriteLine();
} }