Class LTODiagnosticHandler

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.llvm.LTODiagnosticHandler
All Implemented Interfaces:
AutoCloseable, LTODiagnosticHandlerI, CallbackI, NativeResource, Pointer

public abstract class LTODiagnosticHandler extends Callback implements LTODiagnosticHandlerI
Instances of this class may be passed to the codegen_set_diagnostic_handler method.

Type


 void (*LTODiagnosticHandlerI.invoke(int, long, long)) (
     lto_codegen_diagnostic_severity_t severity,
     char const *diag,
     void *ctxt
 )
  • Method Details

    • create

      public static LTODiagnosticHandler create(long functionPointer)
      Creates a LTODiagnosticHandler instance from the specified function pointer.
      Returns:
      the new LTODiagnosticHandler
    • createSafe

      @Nullable public static LTODiagnosticHandler createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static LTODiagnosticHandler create(LTODiagnosticHandlerI instance)
      Creates a LTODiagnosticHandler instance that delegates to the specified LTODiagnosticHandlerI instance.