appleImplLinkAnchor function
Appended to a Classes/Hybrid*.cpp impl forwarder: an external symbol the
anchors file can reference, which pulls this translation unit — and the
auto-register constructor in it — into a static link.
Implementation
String appleImplLinkAnchor(String symbol) =>
'\n'
'// nitrogen link anchor — do not edit. The plugin\'s *.link_anchors.g.mm\n'
'// references this so a release/archive link keeps this translation unit and\n'
'// the auto-register constructor in it. Not part of the plugin API.\n'
'extern "C" __attribute__((used, visibility("default"))) void $symbol(void) {}\n';