Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
main.c File Reference
#include <PhasorFFI.h>
#include <stdio.h>
#include "../../../Bindings/macOS/AppleScript.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define PHASOR_FFI_BUILD_DLL

Functions

static PhasorValue applescript_run (PhasorVM *, int argc, const PhasorValue *argv)
PHASOR_FFI_EXPORT void phasor_plugin_entry (const PhasorAPI *api, PhasorVM *vm)
 The one and only entry point for a Phasor plugin.

Macro Definition Documentation

◆ PHASOR_FFI_BUILD_DLL

#define PHASOR_FFI_BUILD_DLL

Definition at line 1 of file main.c.

Function Documentation

◆ applescript_run()

PhasorValue applescript_run ( PhasorVM * ,
int argc,
const PhasorValue * argv )
static

Definition at line 6 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ phasor_plugin_entry()

PHASOR_FFI_EXPORT void phasor_plugin_entry ( const PhasorAPI * api,
PhasorVM * vm )

The one and only entry point for a Phasor plugin.

A Phasor-compatible shared library MUST export a C function with this exact signature. The Phasor host will call this function when the plugin is loaded, providing the plugin with a pointer to the host's API functions and the current VM instance.

Parameters
apiA pointer to a struct containing function pointers that the plugin can use to interact with the host (e.g., register functions).
vmAn opaque pointer to the VM instance. This should be passed back to any API functions that require it.

Definition at line 40 of file main.c.

Here is the call graph for this function: