mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Add a primop unsafeGetAttrPos to return the position of an attribute
This commit is contained in:
parent
fc33fd86b7
commit
285df765b9
6 changed files with 44 additions and 6 deletions
|
@ -116,6 +116,13 @@ static inline void mkBool(Value & v, bool b)
|
|||
}
|
||||
|
||||
|
||||
static inline void mkNull(Value & v)
|
||||
{
|
||||
v.type = tNull;
|
||||
v.app.left = v.app.right = 00; // scrub
|
||||
}
|
||||
|
||||
|
||||
static inline void mkApp(Value & v, Value & left, Value & right)
|
||||
{
|
||||
v.type = tApp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue