diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-11 23:04:13 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-11 23:04:13 +0200 |
commit | bb6e6923f25841874b6a915d234d884ddd4c92dd (patch) | |
tree | db1483219b801816e0923d6c800fdac1d6db751e /src/libexpr/symbol-table.hh | |
parent | 41ba5135e0a2d9940c4e8cbedff44eb1a47af782 (diff) |
Add environment variable NIX_SHOW_SYMBOLS for dumping the symbol table
Diffstat (limited to 'src/libexpr/symbol-table.hh')
-rw-r--r-- | src/libexpr/symbol-table.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libexpr/symbol-table.hh b/src/libexpr/symbol-table.hh index 44929f7ee..91faea122 100644 --- a/src/libexpr/symbol-table.hh +++ b/src/libexpr/symbol-table.hh @@ -75,6 +75,13 @@ public: } size_t totalSize() const; + + template<typename T> + void dump(T callback) + { + for (auto & s : symbols) + callback(s); + } }; } |