mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: wrap up unsafe { nil } (p. 3)
This commit is contained in:
@ -148,7 +148,7 @@ fn bare_backtrace() string {
|
||||
fn __exit(code int) {
|
||||
unsafe {
|
||||
// the only way to abort process execution in WASM
|
||||
mut x := &int(voidptr(0))
|
||||
mut x := &int(nil)
|
||||
*x = code
|
||||
}
|
||||
for {}
|
||||
|
Reference in New Issue
Block a user