koblas

Companion

Opening a library, and the function descriptors a prototype is written with.

Functions

doubleOf

double f(...).

intOf

int f(...).

longOf

int64_t f(...).

open

fun open(candidates: List<String>, keySymbol: String, description: String): FfmLibrary(source)

Opens the first of candidates that loads and exports keySymbol, or a library that reports itself absent. description names it in a diagnostic.

Only the two exceptions that mean absence are swallowed, so a host without the library does not crash startup while a StackOverflowError is never read as a missing library.

pointerOf

void *f(...).

voidOf

void f(...).