Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
api.cpp File Reference
#include "ffi.hpp"
#include <PhasorFFI.h>
Include dependency graph for api.cpp:

Go to the source code of this file.

Namespaces

namespace  Phasor
 The Phasor Programming Language and Runtime.

Functions

Phasor::Value Phasor::from_c_value (const PhasorValue &c_value)
 Converts a C-style FFI value to a C++ VM value.
PhasorValue Phasor::to_c_value (const Phasor::Value &cpp_value, std::vector< std::unique_ptr< char[]> > &string_arena, std::vector< std::unique_ptr< PhasorValue[]> > &array_arena)
 Converts a C++ VM value to a C-style FFI value.
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.