luaur_common/macros/luau_fastflag.rs
1//! `LUAU_FASTFLAG(flag)` — forward-declares a bool FastFlag defined in another
2//! translation unit. Reference: `luau/Common/include/Luau/Common.h`
3//! (`namespace FFlag { extern FValue<bool> flag; }`).
4//!
5//! Rust has no cross-module `extern` declaration for statics: the flag is a
6//! `pub static` reachable by path (`crate::FFlag::flag`), so this expands to
7//! nothing. The accompanying `LUAU_FASTFLAGVARIABLE` is what defines it.
8
9#[allow(non_snake_case)]
10#[macro_export]
11macro_rules! LUAU_FASTFLAG {
12 ($flag:ident) => {};
13}
14
15pub use LUAU_FASTFLAG;