We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b12ca commit 4c1a427Copy full SHA for 4c1a427
phper/src/macros.rs
@@ -83,3 +83,11 @@ macro_rules! eg {
83
$crate::sys::executor_globals.$x
84
};
85
}
86
+
87
+/// Equivalent to the php `PG`.
88
+#[macro_export]
89
+macro_rules! pg {
90
+ ($x:ident) => {
91
+ $crate::sys::core_globals.$x
92
+ };
93
+}
phper/src/resources.rs
@@ -14,6 +14,7 @@ impl Resource {
14
(ptr as *mut Self).as_mut().expect("ptr should not be null")
15
16
17
+ #[allow(clippy::useless_conversion)]
18
pub fn handle(&self) -> i64 {
19
self.inner.handle.into()
20
0 commit comments