ke: use assert_interface for ki.impl

This commit is contained in:
Loïc Grégoire
2026-06-26 17:46:25 -04:00
parent 06e0b857ad
commit b67391e1f2
6 changed files with 60 additions and 26 deletions
-5
View File
@@ -167,8 +167,3 @@ pub const Thread = struct {
return self.priority >= Priority.low_interactive and self.priority <= Priority.high_interactive;
}
};
comptime {
if (!@hasDecl(ki.impl, "ThreadContext")) @compileError("impl must provide ThreadContext");
if (!@hasDecl(ki.impl.ThreadContext, "init")) @compileError("ThreadContext must have init()");
}