MCPcopy Create free account
hub / github.com/NixOS/nix / nix_libexpr_init

Function nix_libexpr_init

src/libexpr-c/nix_api_expr.cc:45–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43extern "C" {
44
45nix_err nix_libexpr_init(nix_c_context * context)
46{
47 if (context)
48 context->last_err_code = NIX_OK;
49 {
50 auto ret = nix_libutil_init(context);
51 if (ret != NIX_OK)
52 return ret;
53 }
54 {
55 auto ret = nix_libstore_init(context);
56 if (ret != NIX_OK)
57 return ret;
58 }
59 try {
60 nix::initGC();
61 }
62 NIXC_CATCH_ERRS
63}
64
65nix_err nix_expr_eval_from_string(
66 nix_c_context * context, EvalState * state, const char * expr, const char * path, nix_value * value)

Callers 2

nix_api_expr_testMethod · 0.85
TEST_FFunction · 0.85

Calls 3

nix_libutil_initFunction · 0.85
nix_libstore_initFunction · 0.85
initGCFunction · 0.85

Tested by 1

nix_api_expr_testMethod · 0.68