mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 20:48:03 +03:00
_ptr == IntPtr.Zero, not _ptr == null
This commit is contained in:
parent
bb1980eb84
commit
b50c20a5ed
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
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user