luaur-common 0.1.1

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `LUAU_FASTFLAG(flag)` — forward-declares a bool FastFlag defined in another
//! translation unit. Reference: `luau/Common/include/Luau/Common.h`
//! (`namespace FFlag { extern FValue<bool> flag; }`).
//!
//! Rust has no cross-module `extern` declaration for statics: the flag is a
//! `pub static` reachable by path (`crate::FFlag::flag`), so this expands to
//! nothing. The accompanying `LUAU_FASTFLAGVARIABLE` is what defines it.

#[allow(non_snake_case)]
#[macro_export]
macro_rules! LUAU_FASTFLAG {
    ($flag:ident) => {};
}

pub use LUAU_FASTFLAG;