--- nono/debugger/branchhistory.h 2026/04/29 17:04:53 1.1.1.2 +++ nono/debugger/branchhistory.h 2026/04/29 17:05:09 1.1.1.3 @@ -4,7 +4,9 @@ // Licensed under nono-license.txt // +// // ブランチ履歴 +// #pragma once @@ -35,17 +37,15 @@ class BranchHistory : public Object } __packed; public: - // コンストラクタで指定する種別 - enum { - BrHist = false, // ブランチ履歴(例外含む) - ExHistOnly = true, // 例外履歴(のみ) - }; + // コンストラクタで指定する種別 (bool に名前を付けたいだけ) + static const bool BrHist = false; // ブランチ履歴 (例外も含む) + static const bool ExHistOnly = true; // 例外履歴(のみ) // 表示系フラグ static const uint64 BottomToTop = (1ULL << 63); // 新しい方を下に public: - BranchHistory(bool mode); + BranchHistory(bool is_exhist_); virtual ~BranchHistory() override; // 初期化