diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-18 22:22:35 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-18 22:22:35 +0100 |
commit | 285df765b91588e39d6f35a32e30b84c3cb5be75 (patch) | |
tree | 8f93b3fd527f44f14eacefb6c4c9385f670e8aea /src/libexpr/value.hh | |
parent | fc33fd86b7727365caab44c05a90d5b52209131b (diff) |
Add a primop unsafeGetAttrPos to return the position of an attribute
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r-- | src/libexpr/value.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index ee5c7397b..982582793 100644 --- a/src/libexpr/value.hh +++ b/src/libexpr/value.hh @@ -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; |