module: correct alignment of dispatched arguments; move stack space to caller

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-19 17:11:43 -07:00
parent 09c01a79b0
commit 2bc17a33fb
3 changed files with 41 additions and 17 deletions

View file

@ -102,5 +102,6 @@ test "entities DB" {
//-------------------------------------------------------------------------
// Send events to modules
world.mod.renderer.sendGlobal(.tick, .{});
try world.dispatch(.{});
var stack_space: [8 * 1024 * 1024]u8 = undefined;
try world.dispatch(&stack_space, .{});
}