1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 01:11:15 +02:00

Add function to allocate a Value in traceable memory

This commit is contained in:
Eelco Dolstra 2020-04-16 16:28:07 +02:00
parent 1290411c2d
commit b3e5eea4a9
2 changed files with 13 additions and 0 deletions

View file

@ -261,4 +261,9 @@ typedef std::map<Symbol, Value *> ValueMap;
#endif
/* A value allocated in traceable memory. */
typedef std::shared_ptr<Value *> RootValue;
RootValue allocRootValue(Value * v);
}