Improved error handling for struct types
This commit is contained in:
parent
8357aefc01
commit
b2030c506c
5 changed files with 22 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
nanosleep(duration Pointer) -> Int {
|
||||
struct timespec {
|
||||
seconds Int
|
||||
nanoseconds Int
|
||||
}
|
||||
|
||||
nanosleep(duration *timespec) -> Int {
|
||||
return syscall(35, duration, 0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue