1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 11:03: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:
Eelco Dolstra 2020-03-19 13:50:01 +01:00 committed by Domen Kožar
parent d2008f2fff
commit 96310a4d7d
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246

View file

@ -31,6 +31,9 @@ extern "C" {
#include "command.hh"
#include "finally.hh"
#define GC_INCLUDE_NEW
#include <gc/gc_cpp.h>
namespace nix {
#define ESC_RED "\033[31m"
@ -41,7 +44,7 @@ namespace nix {
#define ESC_CYA "\033[36m"
#define ESC_END "\033[0m"
struct NixRepl
struct NixRepl : gc
{
string curDir;
EvalState state;