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