Skip to content

Commit

Permalink
Add safe (i.e. doesn't crash VStudio) properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsabby committed May 3, 2015
1 parent 6cb74c5 commit d206864
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions LLVMTypeRef.cs
Expand Up @@ -5,14 +5,14 @@

partial struct LLVMTypeRef
{
public LLVMTypeKind GetTypeKind()
public LLVMTypeKind TypeKind
{
return LLVM.GetTypeKind(this);
get { return LLVM.GetTypeKind(this); }
}

public bool TypeIsSized()
public bool TypeIsSized
{
return LLVM.TypeIsSized(this);
get { return LLVM.TypeIsSized(this); }
}

public LLVMContextRef GetTypeContext()
Expand All @@ -38,9 +38,9 @@ public uint GetIntTypeWidth()
return LLVM.GetIntTypeWidth(this);
}

public bool IsFunctionVarArg()
public bool IsFunctionVarArg
{
return LLVM.IsFunctionVarArg(this);
get { return LLVM.IsFunctionVarArg(this); }
}

public LLVMTypeRef GetReturnType()
Expand Down Expand Up @@ -78,14 +78,14 @@ public LLVMTypeRef[] GetStructElementTypes()
return LLVM.GetStructElementTypes(this);
}

public bool IsPackedStruct()
public bool IsPackedStruct
{
return LLVM.IsPackedStruct(this);
get { return LLVM.IsPackedStruct(this); }
}

public bool IsOpaqueStruct()
public bool IsOpaqueStruct
{
return LLVM.IsOpaqueStruct(this);
get { return LLVM.IsOpaqueStruct(this); }
}

public LLVMTypeRef GetElementType()
Expand Down

0 comments on commit d206864

Please sign in to comment.