From daa459269e0a1af8ad46e9b26bbe2b6ddea2f364 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Wed, 23 Nov 2016 17:12:08 +0100 Subject: [PATCH] added hl_breakpoint() --- src/std/error.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/std/error.c b/src/std/error.c index 4686cb3ed..5ca09afa8 100644 --- a/src/std/error.c +++ b/src/std/error.c @@ -119,5 +119,10 @@ HL_PRIM void hl_fatal_fmt( const char *file, int line, const char *fmt, ...) { hl_fatal_error(buf,file,line); } +HL_PRIM void hl_breakpoint() { + hl_debug_break(); +} + DEFINE_PRIM(_ARR,exception_stack,_NO_ARG); DEFINE_PRIM(_VOID,set_error_handler,_FUN(_VOID,_DYN)); +DEFINE_PRIM(_VOID,breakpoint,_NO_ARG);