messing around with testing using keyword in proc args (with new debug support)

This commit is contained in:
2025-07-19 00:07:36 -04:00
parent fe8e84f9bd
commit 3769413a50
8 changed files with 31 additions and 32 deletions

View File

@ -0,0 +1 @@
package sectr

View File

@ -20,10 +20,10 @@ Job :: struct {
next: ^Job,
cb: JobProc,
data: rawptr,
// scratch: ^CArena,
group: ^JobGroup,
ignored: IgnoredThreads,
dbg_lbl: string,
// scratch: CArena,
}
JobList :: struct {
@ -43,7 +43,7 @@ JobSystemContext :: struct {
ThreadWorkerContext :: struct {
system_ctx: Thread,
index: int,
}
}
WorkerID :: enum u32 {
Master_Prepper = 0,

View File

@ -1,3 +0,0 @@
package sectr

View File

@ -40,7 +40,7 @@ Memory :: struct {
state : ^State,
replay : ReplayState,
replay : ReplayState, // TODO(Ed): Were not doing it this way.
logger : Logger,
profiler : ^SpallProfiler
}
@ -182,7 +182,7 @@ State :: struct {
transient_clear_time : f32, // Time in seconds for the usual period to clear transient
transient_clear_elapsed : f32, // Time since last clear
job_system : JobSystemContext,
job_system : ^JobSystemContext,
string_cache : StringCache,

View File

@ -69,14 +69,14 @@ append_staged_input_events :: #force_inline proc( event : InputEvent ) {
append( & state.staged_input_events, event )
}
pull_staged_input_events :: proc( input : ^InputState, input_events : ^InputEvents, staged_events : Array(InputEvent) )
pull_staged_input_events :: proc( input : ^InputState, using input_events : ^InputEvents, using staged_events : Array(InputEvent) )
{
// TODO(Ed) : Add guards for multi-threading
staged_events_slice := array_to_slice(staged_events)
push( & input_events.events, staged_events_slice )
using input_events
// using input_events
for event in staged_events_slice
{