Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
ffi.hpp File Reference
#include <functional>
#include <Value.hpp>
#include <vector>
#include <string>
#include <dlfcn.h>
#include <PhasorFFI.h>
Include dependency graph for ffi.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Phasor::Plugin
 Represents a loaded plugin. More...
class  Phasor::FFI
 Manages loading, registering, and unloading native FFI plugins. More...

Namespaces

namespace  Phasor
 The Phasor Programming Language and Runtime.

Typedefs

using FFIFunction = void (*)(const PhasorAPI *api, PhasorVM *vm)

Functions

Phasor::Value Phasor::c_native_func_wrapper (PhasorNativeFunction c_func, Phasor::VM *vm, const std::vector< Phasor::Value > &args)
 The "trampoline" that wraps a C function from a plugin.
void Phasor::register_native_c_func (PhasorVM *vm, const char *name, PhasorNativeFunction func)
 The concrete implementation of the PhasorRegisterFunction API call.

Typedef Documentation

◆ FFIFunction

using FFIFunction = void (*)(const PhasorAPI *api, PhasorVM *vm)

Definition at line 22 of file ffi.hpp.