mach/src/main.zig
Stephen Gutekanst 4e091f1cb8 replace module() helper; remove invalid re-exports;
Fixes hexops/mach#1041
Helps hexops/mach#1038

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-24 17:20:40 -07:00

36 lines
977 B
Zig

// Core re-exports
pub const core = @import("mach-core");
pub const Timer = core.Timer;
// Mach packages
pub const gpu = core.gpu;
pub const sysjs = @import("mach-sysjs");
pub const ecs = @import("mach-ecs");
pub const sysaudio = @import("mach-sysaudio");
// Mach standard library
pub const Atlas = @import("atlas/Atlas.zig");
pub const gfx = @import("gfx/main.zig");
pub const math = @import("math/main.zig");
pub const testing = @import("testing.zig");
// Engine exports
pub const App = @import("engine.zig").App;
pub const Engine = @import("engine.zig").Engine;
pub const World = @import("engine.zig").World;
pub const Mod = World.Mod;
test {
const std = @import("std");
// TODO: refactor code so we can use this here:
// std.testing.refAllDeclsRecursive(@This());
_ = core;
_ = gpu;
_ = ecs;
_ = sysaudio;
_ = gfx;
_ = math;
_ = testing;
std.testing.refAllDeclsRecursive(Atlas);
std.testing.refAllDeclsRecursive(math);
}