All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.llvm.LLVMOrcMaterializationUnitDiscardFunctionI Maven / Gradle / Ivy

The newest version!
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.llvm;

import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;

/**
 * Instances of this interface may be passed to the {@link LLVMOrc#LLVMOrcCreateCustomMaterializationUnit OrcCreateCustomMaterializationUnit} method.
 * 
 * 

Type

* *

 * void (*{@link #invoke}) (
 *     void *Ctx,
 *     LLVMOrcJITDylibRef JD,
 *     LLVMOrcSymbolStringPoolEntryRef Symbol
 * )
*/ @FunctionalInterface @NativeType("LLVMOrcMaterializationUnitDiscardFunction") public interface LLVMOrcMaterializationUnitDiscardFunctionI extends CallbackI { FFICIF CIF = apiCreateCIF( FFI_DEFAULT_ABI, ffi_type_void, ffi_type_pointer, ffi_type_pointer, ffi_type_pointer ); @Override default FFICIF getCallInterface() { return CIF; } @Override default void callback(long ret, long args) { invoke( memGetAddress(memGetAddress(args)), memGetAddress(memGetAddress(args + POINTER_SIZE)), memGetAddress(memGetAddress(args + 2 * POINTER_SIZE)) ); } /** * A {@code MaterializationUnit} discard callback. * *

Ownership of {@code JD} and {@code Symbol} remain with the caller: These arguments should not be disposed of or released.

*/ void invoke(@NativeType("void *") long Ctx, @NativeType("LLVMOrcJITDylibRef") long JD, @NativeType("LLVMOrcSymbolStringPoolEntryRef") long Symbol); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy