Top Inners Fields Constructors Methods
org.lwjgl.llvm

public Class LLVMError

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LLVMError.Functions

Contains the function pointers loaded from LLVMCore.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
LLVMConsumeError(long Err)

Dispose of the given error without handling it.

public static long
LLVMCreateStringError(ByteBuffer ErrMsg)

Create a StringError.

public static long
LLVMCreateStringError(CharSequence ErrMsg)

Create a StringError.

public static void
LLVMDisposeErrorMessage(ByteBuffer ErrMsg)

Dispose of the given error message.

public static ByteBuffer
LLVMGetErrorMessage(long Err)

Returns the given string's error message.

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).

public static long
LLVMGetStringErrorTypeId()

Returns the type id for llvm StringError.

public static long
nLLVMCreateStringError(long ErrMsg)

Unsafe version of: CreateStringError

public static void
nLLVMDisposeErrorMessage(long ErrMsg)

Unsafe version of: DisposeErrorMessage

public static long
nLLVMGetErrorMessage(long Err)

Unsafe version of: GetErrorMessage

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LLVMErrorSuccessback to summary
public static final int LLVMErrorSuccess

Constructor Detail

LLVMErrorback to summary
protected LLVMError()

Method Detail

LLVMConsumeErrorback to summary
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.

LLVMCreateStringErrorback to summary
public static long LLVMCreateStringError(ByteBuffer ErrMsg)

Create a StringError.

Annotations
@NativeType:LLVMErrorRef
Since
12
LLVMCreateStringErrorback to summary
public static long LLVMCreateStringError(CharSequence ErrMsg)

Create a StringError.

Annotations
@NativeType:LLVMErrorRef
Since
12
LLVMDisposeErrorMessageback to summary
public static void LLVMDisposeErrorMessage(ByteBuffer ErrMsg)

Dispose of the given error message.

LLVMGetErrorMessageback to summary
public static 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 calling DisposeErrorMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetErrorTypeIdback to summary
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).

Annotations
@NativeType:LLVMErrorTypeId
LLVMGetStringErrorTypeIdback to summary
public static long LLVMGetStringErrorTypeId()

Returns the type id for llvm StringError.

Annotations
@NativeType:LLVMErrorTypeId
nLLVMCreateStringErrorback to summary
public static long nLLVMCreateStringError(long ErrMsg)

Unsafe version of: CreateStringError

nLLVMDisposeErrorMessageback to summary
public static void nLLVMDisposeErrorMessage(long ErrMsg)

Unsafe version of: DisposeErrorMessage

nLLVMGetErrorMessageback to summary
public static long nLLVMGetErrorMessage(long Err)

Unsafe version of: GetErrorMessage

org.lwjgl.llvm back to summary

public final Class LLVMError.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from LLVMCore.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
ConsumeError

Function address.

public static final long
CreateStringError

Function address.

public static final long
DisposeErrorMessage

Function address.

public static final long
GetErrorMessage

Function address.

public static final long
GetErrorTypeId

Function address.

public static final long
GetStringErrorTypeId

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ConsumeErrorback to summary
public static final long ConsumeError

Function address.

CreateStringErrorback to summary
public static final long CreateStringError

Function address.

DisposeErrorMessageback to summary
public static final long DisposeErrorMessage

Function address.

GetErrorMessageback to summary
public static final long GetErrorMessage

Function address.

GetErrorTypeIdback to summary
public static final long GetErrorTypeId

Function address.

GetStringErrorTypeIdback to summary
public static final long GetStringErrorTypeId

Function address.

Constructor Detail

Functionsback to summary
private Functions()