
Those now return {ok, Msg} or {error, term()} so you are kind of forced to match on them. This is likely to help with correctnes.
16 lines
314 B
C
16 lines
314 B
C
#ifndef ENACL_H
|
|
#define ENACL_H
|
|
|
|
#include <erl_nif.h>
|
|
|
|
#define ATOM_OK "ok"
|
|
#define ATOM_ERROR "error"
|
|
#define ATOM_TRUE "true"
|
|
#define ATOM_FALSE "false"
|
|
|
|
ERL_NIF_TERM enacl_error_tuple(ErlNifEnv *, char *);
|
|
ERL_NIF_TERM enacl_error_finalized(ErlNifEnv *);
|
|
ERL_NIF_TERM enacl_internal_error(ErlNifEnv *);
|
|
|
|
#endif
|