membraneframework / membrane_core

The core of the Membrane Framework, multimedia processing framework written in Elixir
https://membrane.stream
Apache License 2.0
1.31k stars 39 forks source link

Unifex can't return `nil` #684

Closed mickel8 closed 9 months ago

mickel8 commented 12 months ago

Consider following spec:

spec get_peer_cert(state) :: payload | (nil :: label)

when compiling with Unifex, there are two issues:

UNIFEX_TERM get_peer_cert_result_(UnifexEnv *env) {
  return enif_make_atom(env, "");
}