Explorar o código

fixed hl_assert stack reporting

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
1422cd13d6
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/std/error.c

+ 7 - 1
src/std/error.c

@@ -191,10 +191,16 @@ HL_PRIM bool hl_detect_debugger() {
 #	endif
 }
 
-HL_PRIM void hl_assert() {
+#ifdef HL_VCC
+#	pragma optimize( "", off )
+#endif
+HL_PRIM HL_NO_OPT void hl_assert() {
 	hl_debug_break();
 	hl_error("Assert");
 }
+#ifdef HL_VCC
+#	pragma optimize( "", on )
+#endif
 
 #define _SYMBOL _ABSTRACT(hl_symbol)