Top Description Inners Constructors Methods
org.lwjgl.llvm

public abstract Class LTODiagnosticHandler

extends Callback
implements LTODiagnosticHandlerI
Class Inheritance
All Implemented Interfaces
org.lwjgl.llvm.LTODiagnosticHandlerI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.llvm.LTODiagnosticHandler.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the codegen_set_diagnostic_handler method.

Type


void (*invoke) (
    lto_codegen_diagnostic_severity_t severity,
    char const *diag,
    void *ctxt
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
LTODiagnosticHandler(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static LTODiagnosticHandler

Returns:

the new LTODiagnosticHandler
create
(long functionPointer)

Creates a LTODiagnosticHandler instance from the specified function pointer.

public static LTODiagnosticHandler
create(LTODiagnosticHandlerI instance)

Creates a LTODiagnosticHandler instance that delegates to the specified LTODiagnosticHandlerI instance.

public static LTODiagnosticHandler
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

LTODiagnosticHandlerback to summary
protected LTODiagnosticHandler()
LTODiagnosticHandlerback to summary
pack-priv LTODiagnosticHandler(long functionPointer)

Method Detail

createback to summary
public static LTODiagnosticHandler create(long functionPointer)

Creates a LTODiagnosticHandler instance from the specified function pointer.

Returns:LTODiagnosticHandler

the new LTODiagnosticHandler

createback to summary
public static LTODiagnosticHandler create(LTODiagnosticHandlerI instance)

Creates a LTODiagnosticHandler instance that delegates to the specified LTODiagnosticHandlerI instance.

createSafeback to summary
public static LTODiagnosticHandler createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.llvm back to summary

private final Class LTODiagnosticHandler.Container

extends LTODiagnosticHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final LTODiagnosticHandlerI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, LTODiagnosticHandlerI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int
the severity
severity
,
long
the actual diagnostic. The diagnostic is not prefixed by any of severity keyword, e.g., 'error: '.
diag
,
long
used to pass the context set with the diagnostic handler
ctxt
)

Implements org.lwjgl.llvm.LTODiagnosticHandlerI.invoke.

Diagnostic handler type.
Inherited from org.lwjgl.llvm.LTODiagnosticHandler:
createcreatecreateSafe

Field Detail

delegateback to summary
private final LTODiagnosticHandlerI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, LTODiagnosticHandlerI delegate)

Method Detail

invokeback to summary
public void invoke(int severity, long diag, long ctxt)

Implements org.lwjgl.llvm.LTODiagnosticHandlerI.invoke.

Doc from org.lwjgl.llvm.LTODiagnosticHandlerI.invoke.

Diagnostic handler type.

Parameters
severity:int

the severity

diag:long

the actual diagnostic. The diagnostic is not prefixed by any of severity keyword, e.g., 'error: '.

ctxt:long

used to pass the context set with the diagnostic handler

Annotations
@Override