#error: unable to resolve comptime value

1 messages · Page 1 of 1 (latest)

brazen vector
#

after solving my previous issue I have been hit by another issue, in that I'm now getting the error

        const instance = fba.allocator().create(Instance) catch unreachable;```

my code is currently

```pub fn Run() !void {
    try InitializeThreads();
}

fn InitializeThreads() !void {
    const physicsThread = try std.Thread.spawn(.{}, PhysicsUpdate, null);
    _ = physicsThread;
    const inputThread = try std.Thread.spawn(.{}, InputUpdate, null);
    _ = inputThread;
}

fn PhysicsUpdate() void {}
fn InputUpdate() void {}
boreal hedge
#

You haven't provided the code that shows what "Instance" is.

zinc kestrel
#

the full error trace would be helpful :)

#

Oh, got it

zinc kestrel
zinc kestrel
brazen vector
#

okay thank you, I'm used to C where I would pass NULL for a null parameter

zinc kestrel
#

the param here is a tuple of the arguments to the function

#

Since there are no args, it should be an empty tuple