Skip to main content

common_call_stub

Function common_call_stub 

Source
pub fn common_call_stub(
    name: &str,
    target_os: TargetOperatingSystem,
) -> Option<String>
Expand description

Helper function to create a common call_stub implementation.

This handles the common pattern of mapping “print”, “malloc”, and “dealloc” to their platform-specific symbols. Backends can use this to reduce duplication in their call_stub implementations.