Skip to main content

Module luau_fastflagvariable

Module luau_fastflagvariable 

Source
Expand description

LUAU_FASTFLAGVARIABLE(flag) — defines a static (non-dynamic) bool FastFlag. Reference: luau/Common/include/Luau/Common.h.

C++ expands to namespace FFlag { FValue<bool> flag(#flag, false, false); }. Rust modules aren’t open like C++ namespaces, so the macro emits a bare pub static at the call site (no per-flag mod, which would collide when a file defines two flags); the enclosing per-crate FFlag module supplies the namespace, so reads stay FFlag::flag -> crate::FFlag::flag.get().

Macros§

LUAU_FASTFLAGVARIABLE