-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.trace_calls: fix notice for C.BOOL for
v -trace-calls file.v
(#20219
- Loading branch information
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module trace_calls | ||
|
||
pub struct C.timespec { | ||
mut: | ||
tv_sec i64 | ||
tv_nsec i64 | ||
} | ||
|
||
fn C.gettid() u32 | ||
fn C.clock_gettime(int, &C.timespec) | ||
fn C.pthread_self() u64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module trace_calls | ||
|
||
fn C.GetCurrentThreadId() u32 | ||
fn C.QueryPerformanceCounter(&u64) C.BOOL |