cmListFileBacktrace: Add a method to retrieve the Bottom of a snapshot

This commit is contained in:
Stephen Kelly 2016-10-13 00:18:24 +02:00
parent 7863fba1f6
commit e32a6bdd99

View File

@ -120,6 +120,8 @@ public:
cmListFileBacktrace& operator=(cmListFileBacktrace const& r);
~cmListFileBacktrace();
cmState::Snapshot GetBottom() const { return this->Bottom; }
// Get a backtrace with the given file scope added to the top.
// May not be called until after construction with a valid snapshot.
cmListFileBacktrace Push(std::string const& file) const;