logo
pub unsafe fn set_ptr<T>(
    callback: retro_environment_t,
    id: u32,
    ptr: *const T
) -> Option<bool>
Expand description

Passes a value (by a raw const pointer) to the environment callback.

Returns None if the environment callback hasn’t been set and the return status of the callback otherwise.