Skip to content

Commit

Permalink
v.trace_calls: fix notice for C.BOOL for v -trace-calls file.v (#20219
Browse files Browse the repository at this point in the history
)
  • Loading branch information
spytheman authored Dec 19, 2023
1 parent 3b0802d commit ef03767
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
15 changes: 0 additions & 15 deletions vlib/v/trace_calls/tracing_calls.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ __global g_start_time = u64(0)

pub const is_used = 1

// unix:
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

// windows:
fn C.GetCurrentThreadId() u32
fn C.QueryPerformanceCounter(&u64) C.BOOL

@[markused]
pub fn on_call(fname string) {
mut volatile pfbase := unsafe { &u8(0) }
Expand Down
11 changes: 11 additions & 0 deletions vlib/v/trace_calls/tracing_calls_nix.c.v
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
4 changes: 4 additions & 0 deletions vlib/v/trace_calls/tracing_calls_windows.c.v
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

0 comments on commit ef03767

Please sign in to comment.