#Is there a way to cast a function into an unsigned integer and cast it back?

1 messages · Page 1 of 1 (latest)

floral oar
#

self explainable

compact crown
#
const x: usize = @intFromPtr(func);
const f: *const fn() void = @ptrFromInt(x);
floral oar
#

ok works if i &yo