Skip to main content

luaur_repl_cli/functions/
coverage_active.rs

1use crate::functions::coverage_init::G_COVERAGE;
2
3// Faithful port of `bool coverageActive() { return gCoverage.L != nullptr; }`.
4pub fn coverage_active() -> bool {
5    unsafe { !(*core::ptr::addr_of!(G_COVERAGE)).l.is_null() }
6}