mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
15 lines
447 B
Zig
15 lines
447 B
Zig
const init = @import("init.zig");
|
|
|
|
var initialized: bool = false;
|
|
|
|
/// Call this function before any other tests in this package to ensure that
|
|
/// the oni library is initialized. This should only be used for tests
|
|
/// and only when you're sure this is the ONLY way that oni is being
|
|
/// initialized.
|
|
///
|
|
/// This always only initializes the encodings the tests use.
|
|
pub fn ensureInit() !void {
|
|
if (initialized) return;
|
|
try init.init();
|
|
}
|