Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix_api_expr.hh
Go to the documentation of this file.
1#pragma once
3#include "nix_api_expr.h"
4#include "nix_api_value.h"
6
7#include <gtest/gtest.h>
8
9namespace nixC {
10
11class nix_api_expr_test : public nix_api_store_test
12{
13protected:
14
15 nix_api_expr_test()
16 {
17 nix_libexpr_init(ctx);
18 state = nix_state_create(nullptr, nullptr, store);
19 value = nix_alloc_value(nullptr, state);
20 }
21 ~nix_api_expr_test()
22 {
23 nix_gc_decref(nullptr, value);
24 nix_state_free(state);
25 }
26
27 EvalState * state;
28 nix_value * value;
29};
30
31}
friend class EvalState
Definition lexer.l:5728