View Source Zig.Nif (zigler v0.11.0)

module encapsulating all of the information required to correctly generate a nif function.

Note that all information obtained from semantic analysis of the function is stashed in the Zig.Nif.Function module.

Summary

Types

@type t() :: %Zig.Nif{
  alias: nil | atom(),
  args: [keyword()],
  concurrency:
    Zig.Nif.Synchronous
    | Zig.Nif.Threaded
    | Zig.Nif.Yielding
    | Zig.Nif.DirtyCpu
    | Zig.Nif.DirtyIo,
  doc: nil | String.t(),
  export: boolean(),
  leak_check: boolean(),
  name: atom(),
  raw: nil | :beam | :erl_nif | :c,
  return: keyword(),
  spec: Macro.t(),
  type: Zig.Type.Function.t()
}

Functions

Link to this function

indexed_args(params_list)

View Source
Link to this function

indexed_parameters(params_list)

View Source

based on nif options for this function keyword at (opts :: nifs :: function_name)

Link to this function

render_erlang(nif, opts \\ [])

View Source
Link to this function

validate_return!(function, file, line)

View Source