20 lines
581 B
Swift
20 lines
581 B
Swift
// SnippetEntry.swift
|
|
// Lyrebird
|
|
//
|
|
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// LyrebirdLiveCompile — Phase 142 core
|
|
//
|
|
// C ABI signature of the snippet's exported entry point.
|
|
|
|
#if os(macOS)
|
|
|
|
/// Snippets export this symbol via `@_cdecl("lyrebird_snippet_entry")`. Phase
|
|
/// 143 will pass a pointer to a `LiveSession` (or harness context) here;
|
|
/// Phase 142 only requires that snippets can declare a function matching this
|
|
/// signature.
|
|
public typealias SnippetEntry = @convention(c) (UnsafeMutableRawPointer?) -> Void
|
|
|
|
#endif
|