#*anyopaque to *const fn(*anyopaque)

1 messages · Page 1 of 1 (latest)

rustic crescent
#

@ptrCast and likely also @alignCast

unkempt spire
#

Hey thanks for the response, what would the syntax be for either of these? I was messing around with ptrCast earlier but I couldn't figure it out

rustic crescent
#

CreateThread(null, 0, @ptrCast(@alignCast(executable_memory_space)), null, 0, null);

#

they infer their result based on the location they're at

unkempt spire
#

error: expected error union type, found '?*anyopaque'

rustic crescent
#

CreateThread doesn't return an error union, you can't try it

unkempt spire
#

Ah, right