Skip to content

Commit a68f057

Browse files
committed
fixup! src: make creating per-binding data structures easier
1 parent 9222827 commit a68f057

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/env.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,9 @@ class Environment : public MemoryRetainer {
876876

877877
T* data = nullptr;
878878
Environment* env;
879+
880+
inline operator bool() const { return data != nullptr; }
881+
inline bool operator !() const { return data == nullptr; }
879882
};
880883

881884
template <typename T>

0 commit comments

Comments
 (0)