From d2068647a450c799b98a16760d92a4a06052014f Mon Sep 17 00:00:00 2001 From: mjsabby Date: Sat, 2 May 2015 23:52:26 -0700 Subject: [PATCH] Add safe (i.e. doesn't crash VStudio) properties --- LLVMTypeRef.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/LLVMTypeRef.cs b/LLVMTypeRef.cs index a2489a77..1b17b055 100644 --- a/LLVMTypeRef.cs +++ b/LLVMTypeRef.cs @@ -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() @@ -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() @@ -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()