@@ -230,15 +230,16 @@ proc nlvmExceptionCleanup(
230
230
231
231
var ehGlobals {.threadvar .}: NlvmEhGlobals
232
232
233
+ include system/ rawquits
233
234
proc unhandledException () {.noreturn .} =
234
235
c_fprintf (cstderr, " Error: unhandled exception: [foreign]\n " )
235
236
236
- quit (1 ) # TODO alternatively, quitOrDebug
237
+ rawQuit (1 ) # TODO alternatively, quitOrDebug
237
238
238
239
proc unhandledException (e: ref Exception ) {.noreturn .} =
239
240
c_fprintf (cstderr, " Error: unhandled exception: %s [%s]\n " , cstring (e.msg), e.name)
240
241
241
- quit (1 ) # TODO alternatively, quitOrDebug
242
+ rawQuit (1 ) # TODO alternatively, quitOrDebug
242
243
243
244
func getNimTypePtr (
244
245
ttypeIndex: int , classInfo: pointer , ttypeEncoding: uint8 , ctx: UnwindContext
@@ -292,7 +293,7 @@ when defined(nimV2):
292
293
293
294
if suffixLen <= sLen:
294
295
result =
295
- memcmp (cstring ( unsafeAddr s[sLen - suffixLen]), suffix, csize_t (suffixLen)) == 0
296
+ memcmp (cast [ cstring ]( addr s[sLen - suffixLen]), suffix, csize_t (suffixLen)) == 0
296
297
297
298
proc isObj (obj: PNimTypeV2 , subclass: cstring ): bool {.compilerRtl , inl .} =
298
299
endsWith (obj.name, subclass)
0 commit comments