mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
nix repl: Scan NixRepl for GC roots
Fixes #3175.
(cherry picked from commit b244e65cdb
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
d2008f2fff
commit
96310a4d7d
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,9 @@ extern "C" {
|
||||||
#include "command.hh"
|
#include "command.hh"
|
||||||
#include "finally.hh"
|
#include "finally.hh"
|
||||||
|
|
||||||
|
#define GC_INCLUDE_NEW
|
||||||
|
#include <gc/gc_cpp.h>
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
#define ESC_RED "\033[31m"
|
#define ESC_RED "\033[31m"
|
||||||
|
@ -41,7 +44,7 @@ namespace nix {
|
||||||
#define ESC_CYA "\033[36m"
|
#define ESC_CYA "\033[36m"
|
||||||
#define ESC_END "\033[0m"
|
#define ESC_END "\033[0m"
|
||||||
|
|
||||||
struct NixRepl
|
struct NixRepl : gc
|
||||||
{
|
{
|
||||||
string curDir;
|
string curDir;
|
||||||
EvalState state;
|
EvalState state;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue