package gccjit
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val code : result -> string -> ('a -> 'b) Ctypes.fn -> 'a -> 'b
Locate a given function within the built machine code.
- Functions are looked up by name. For this to succeed, a function with a name matching funcname must have been created on result's context (or a parent context) via a call to
Function.create
with kindExported
. - If such a function is not found, an error will be raised.
- If the function is found, the result is cast to the given Ctypes signature. Care must be taken to pass a signature compatible with that of function being extracted.
- The resulting machine code becomes invalid after
release
is called on theresult
; attempting to call it after that may lead to a segmentation fault.
val global : result -> string -> 'a Ctypes.typ -> 'a Ctypes.ptr
Locate a given global within the built machine code.
- Globals are looked up by name. For this to succeed, a global with a name matching name must have been created on result's context (or a parent context) via a call to
LValue.global
with kindExported
. - If the global is found, the result is cast to the Given
Ctypes
type. - This is a pointer to the global, so e.g. for an
int
this is anint *
. - If such a global is not found, an error will be raised.
- The resulting address becomes invalid after
release
is called on theresult
; attempting to use it after that may lead to a segmentation fault.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>