|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 8: The Full Manual API Lifecycle. More...
Classes | |
| struct | Point |
| A simple struct with two doubles, often used to test pass-by-value on registers. More... | |
Functions | |
| Point | move_point (Point p, double dx) |
| int | main () |
Cookbook Chapter 8: The Full Manual API Lifecycle.
This example demonstrates how to create a trampoline without using the signature parser. This is the "Manual API" and is ideal for performance-critical applications or language bindings that construct type information programmatically.
The process involves:
infix_type objects for all required types (structs, primitives) by allocating them from the arena.infix_forward_create_manual with the constructed types.| int main | ( | void | ) |