Cauldron2D.Native (Cauldron2D v0.2.2)

Copy Markdown View Source

Where cauldron_2d's compiled native code is: priv/native/<system architecture>, the architecture as :erlang.system_info(:system_architecture) gives it. Builds for different machines (macOS, Linux) sit side by side in one checkout, and each loads its own. The Makefile writes to the same folder, which mix.exs passes it as PRIV_DIR.

Summary

Functions

The file name of this machine's native code, as a charlist for :erlang.load_nif/2.

Functions

path(name)

@spec path(String.t()) :: charlist()

The file name of this machine's native code, as a charlist for :erlang.load_nif/2.