Skip to content

Commit 7d141c3

Browse files
committed
Add sg macro.
1 parent 4c1a427 commit 7d141c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

phper/src/macros.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,11 @@ macro_rules! pg {
9191
$crate::sys::core_globals.$x
9292
};
9393
}
94+
95+
/// Equivalent to the php `SG`.
96+
#[macro_export]
97+
macro_rules! sg {
98+
($x:ident) => {
99+
$crate::sys::sapi_globals.$x
100+
};
101+
}

0 commit comments

Comments
 (0)