Package org.lwjgl.llvm
Class LLVMError
java.lang.Object
org.lwjgl.llvm.LLVMError
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromLLVMCore.getLibrary()
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
LLVMConsumeError
(long Err) Dispose of the given error without handling it.static long
LLVMCreateStringError
(CharSequence ErrMsg) Create aStringError
.static long
LLVMCreateStringError
(ByteBuffer ErrMsg) Create aStringError
.static void
LLVMDisposeErrorMessage
(ByteBuffer ErrMsg) Dispose of the given error message.static ByteBuffer
LLVMGetErrorMessage
(long Err) Returns the given string's error message.static long
LLVMGetErrorTypeId
(long Err) Returns the type id for the given error instance, which must be a failure value (i.e.static long
Returns the type id for llvmStringError
.static long
nLLVMCreateStringError
(long ErrMsg) Unsafe version of:CreateStringError
static void
nLLVMDisposeErrorMessage
(long ErrMsg) Unsafe version of:DisposeErrorMessage
static long
nLLVMGetErrorMessage
(long Err) Unsafe version of:GetErrorMessage
-
Field Details
-
LLVMErrorSuccess
public static final int LLVMErrorSuccess- See Also:
-
-
Method Details
-
LLVMGetErrorTypeId
public static long LLVMGetErrorTypeId(long Err) Returns the type id for the given error instance, which must be a failure value (i.e. non-null). -
LLVMConsumeError
public static void LLVMConsumeError(long Err) Dispose of the given error without handling it.This operation consumes the error, and the given
LLVMErrorRef
value is not usable once this call returns. Note: This method only needs to be called if the error is not being passed to some other consuming operation, e.g.GetErrorMessage
. -
nLLVMGetErrorMessage
public static long nLLVMGetErrorMessage(long Err) Unsafe version of:GetErrorMessage
-
LLVMGetErrorMessage
Returns the given string's error message.This operation consumes the error, and the given
LLVMErrorRef
value is not usable once this call returns. The caller is responsible for disposing of the string by callingDisposeErrorMessage
. -
nLLVMDisposeErrorMessage
public static void nLLVMDisposeErrorMessage(long ErrMsg) Unsafe version of:DisposeErrorMessage
-
LLVMDisposeErrorMessage
Dispose of the given error message. -
LLVMGetStringErrorTypeId
public static long LLVMGetStringErrorTypeId()Returns the type id for llvmStringError
. -
nLLVMCreateStringError
public static long nLLVMCreateStringError(long ErrMsg) Unsafe version of:CreateStringError
-
LLVMCreateStringError
Create aStringError
.- Since:
- 12
-
LLVMCreateStringError
Create aStringError
.- Since:
- 12
-