Clixir v0.4.0 Clixir View Source

Code to emit Elixir and C code from a single "clixir" (.cx) file.

Pull this in through a use Clixir statement.

Link to this section Summary

Functions

Define a C function. The function body will be translated into C. The function definition will be available in Elixir and can be called like any other function. The process is largely transparent except for the somewhat arbitrary shortcomings of the C backend.

Link to this section Functions

Link to this macro

def_c(clause, list)

View Source (macro)

Define a C function. The function body will be translated into C. The function definition will be available in Elixir and can be called like any other function. The process is largely transparent except for the somewhat arbitrary shortcomings of the C backend.

The elixir code is inserted directly in the module. The C code is added to a special attribute that a __before_compile__ macro reads for further processing.