zigler
▼
Project version
v0.13.3
v0.13.2
v0.13.1
v0.13.0
v0.12.1
v0.11.1
v0.11.1-pre-4
v0.11.1-pre-3
v0.11.1-pre-2
v0.11.1-pre-1
v0.11.0
v0.10.3
v0.10.2
v0.10.1
v0.9.1
v0.8.1
v0.7.3
v0.7.2
v0.7.1
v0.3.2
v0.3.1
v0.3.0
v0.3.0-pre3
v0.3.0-pre2
v0.3.0-pre
v0.2.0
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Pages
Modules
API Reference
Modules
Zigler
Installation: Elixir
Installation: Erlang
Documentation
Currently supported platforms
Zig Nifs made easy
Erlang support (highly experimental)
Zigler Principles
Guides
Using Nifs
Preamble
Basic function writing
Marshalling types manually
Send
Optional values
Error Returns
Collection Datatypes
Returning array-like datatypes
Passing and returning enums
Passing and returning structs
Nested collections
Allocations
Basic Allocator
Wide Alignment Allocator
General Purpose Allocator
Custom allocators
Nif options
Automatic options (elixir)
Automatic options (erlang)
Return type
Alias
Args options
Noclean
Leak Check
Typespec override
Disable documentation
Resources
Declaring a resource
Using resources in functions
Wrapping pointers and cleanup
CXX integration
compiling C using the C toolchain
linking against a C abi library
Easy-C
Nif concurrency strategies
Synchronous
Dirty CPU
Dirty IO
Threaded
Yielding
Global module options
ignore
attributes
adding packages
dump options
Raw nifs
Allowed Signatures
nif options setup
Module Callbacks
on_load
on_upgrade
on_unload
:zigler
Sections
Prerequisites
Building a Zig Module
Summary
Types
foo/0
Functions
parse_transform/2
Zig
Summary
Functions
code/1
nif_name/2
sigil_Z/2
sigil_z/2
version/0
Zig.Formatter
Summary
Functions
features/1
format/2
format_string/1
Exceptions
Zig.CompileError
Summary
Functions
message/1
resolve/2
Zig.Type.ParseError
Summary
Functions
message/1
zig code
beam
Summary
Functions (Exceptions)
raise_elixir_exception/3
raise_exception/2
raise_with_error_return/3
Functions (Concurrency)
yield/0
Functions (Context)
get_env/0
Functions (Env)
alloc_env/0
clear_env/2
copy/2
free_env/1
independent_context/1
Functions (Term Management)
binary_to_slice/1
binary_to_term/2
cleanup/2
compare/2
get/3
make/2
make_empty_list/1
make_error_atom/1
make_error_pair/2
make_into_atom/2
make_list_cell/3
make_ref/1
make_stacktrace/2
release_binary/1
self/1
send/3
term_to_binary/2
Functions
make_general_purpose_allocator_instance/0
Types
Compared/0
Context/0
ContextMode/0
TermType/0
env/0
event/0
loader/0
monitor/0
pid/0
port/0
term/0
tid/0
Constants
allocator/0
general_purpose_allocator/0
wide_alignment_allocator/0
Variables
context/0
Search documentation of zigler
Settings
View Source
Zig.CompileError
exception
(zigler v0.13.1)
Summary
Functions
message(error)
Callback implementation for
Exception.message/1
.
resolve(error, map)
Functions
Link to this function
message(error)
View Source
Callback implementation for
Exception.message/1
.
Link to this function
resolve(error, map)
View Source
×