Package org.lwjgl.llvm
Class LLVMError
- java.lang.Object
-
- org.lwjgl.llvm.LLVMError
-
public class LLVMError extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMError.Functions
Contains the function pointers loaded fromLLVMCore.getLibrary()
.
-
Field Summary
Fields Modifier and Type Field Description static int
LLVMErrorSuccess
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
LLVMConsumeError(long Err)
Dispose of the given error without handling it.static void
LLVMDisposeErrorMessage(java.nio.ByteBuffer ErrMsg)
Dispose of the given error message.static java.nio.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
LLVMGetStringErrorTypeId()
Returns the type id for llvmStringError
.static void
nLLVMDisposeErrorMessage(long ErrMsg)
Unsafe version of:DisposeErrorMessage
static long
nLLVMGetErrorMessage(long Err)
Unsafe version of:GetErrorMessage
-
-
-
Field Detail
-
LLVMErrorSuccess
public static final int LLVMErrorSuccess
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Nullable public static java.nio.ByteBuffer LLVMGetErrorMessage(long Err)
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
public static void LLVMDisposeErrorMessage(java.nio.ByteBuffer ErrMsg)
Dispose of the given error message.
-
LLVMGetStringErrorTypeId
public static long LLVMGetStringErrorTypeId()
Returns the type id for llvmStringError
.
-
-