Skip to content

Commit

Permalink
Unsupported platform static asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Feb 4, 2024
1 parent a6f1083 commit 26a4e39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions druntime/src/core/thread/osthread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,8 @@ private extern (D) void resume(ThreadBase _t) nothrow @nogc
t.m_curr.tstack = t.m_curr.bstack;
}
}
else
static assert(false, "Platform not supported.");
}


Expand Down
4 changes: 4 additions & 0 deletions druntime/src/core/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,8 @@ extern(C) void _d_initMonoTime() @nogc nothrow
}
}
}
else
static assert(0, "Unsupported platform");
}


Expand Down Expand Up @@ -2883,6 +2885,8 @@ deprecated:
else
ticksPerSec = 1_000_000;
}
else
static assert(0, "Unsupported platform");

if (ticksPerSec != 0)
appOrigin = TickDuration.currSystemTick;
Expand Down

0 comments on commit 26a4e39

Please sign in to comment.