--- nono/vm/event.h 2026/04/29 17:05:10 1.1.1.9 +++ nono/vm/event.h 2026/04/29 17:05:29 1.1.1.11 @@ -10,7 +10,7 @@ #pragma once -#include "device.h" +#include "nono.h" // ユーザ定義リテラルを使ったサフィックス @@ -55,6 +55,7 @@ static inline constexpr uint64 operator" } // コールバック関数の型 +class Device; class Event; using EventCallback_t = void (Device::*)(Event&); #define ToEventCallback(f) static_cast(f) @@ -71,14 +72,9 @@ class Event { public: Event(); - Event(Device *dev_); + explicit Event(Device *dev_); ~Event(); - // このイベントを登録する - void Regist(); - // このイベントを登録する (名前を同時に設定する) - void Regist(const std::string& name_); - // このイベントが動作中なら true を返す bool IsRunning() const { return active;