1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: backtrace and sigaction fixes

This commit is contained in:
Alexander Medvednikov
2020-03-22 14:47:43 +01:00
parent 0609756d36
commit 2738a0c776
4 changed files with 17 additions and 3 deletions

View File

@ -21,7 +21,9 @@ fn C.strlen(s byteptr) int
fn C.isdigit(s byteptr) bool
// stdio.h
fn C.popen(c byteptr, t byteptr) voidptr
// <execinfo.h>
// backtrace functions are not #included, that's why they have to be defined without C.
fn backtrace(a voidptr, b int) int
fn backtrace_symbols(voidptr, int) &byteptr