diff options
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/value.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index 802e8ed2ee75..9df516f062ef 100644 --- a/src/libexpr/value.hh +++ b/src/libexpr/value.hh @@ -220,6 +220,14 @@ static inline void mkApp(Value & v, Value & left, Value & right) } +static inline void mkPrimOpApp(Value & v, Value & left, Value & right) +{ + v.type = tPrimOpApp; + v.app.left = &left; + v.app.right = &right; +} + + static inline void mkStringNoCopy(Value & v, const char * s) { v.type = tString; |