From efb59fde92a848e7c92ac5154dd5016580d211d4 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 16 Sep 2014 10:57:00 -0400 Subject: [PATCH] Add breakpoint utility function. --- components/util/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/util/lib.rs b/components/util/lib.rs index 0d59b21124d..5604364e7af 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -44,3 +44,7 @@ pub mod task; pub mod time; pub mod vec; pub mod workqueue; + +pub fn breakpoint() { + unsafe { ::std::intrinsics::breakpoint() }; +}