Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Log.cpp 318B

1234567891011121314151617181920212223
  1. /*!
  2. * \file src/Log.cpp
  3. * \brief Log
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #include "Log.h"
  9. Log::Log() {
  10. printBuffer << std::boolalpha;
  11. }
  12. unsigned long Log::size() {
  13. return mHistory.size();
  14. }
  15. std::string Log::get(unsigned long i) {
  16. assert(i < mHistory.size());
  17. return mHistory.at(i);
  18. }