mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
21 lines
432 B
V
21 lines
432 B
V
// Copyright (c) 2019-2023 Alexander Medvednikov. All rights reserved.
|
|
// Use of this source code is governed by an MIT license
|
|
// that can be found in the LICENSE file.
|
|
module builtin
|
|
|
|
fn builtin_init() {
|
|
// Do nothing
|
|
}
|
|
|
|
fn break_if_debugger_attached() {
|
|
unsafe {
|
|
mut ptr := &voidptr(0)
|
|
*ptr = nil
|
|
}
|
|
}
|
|
|
|
[markused; noreturn]
|
|
pub fn panic_lasterr(base string) {
|
|
// TODO: use strerror_r and errno
|
|
panic(base + ' unknown')
|
|
}
|