@@ -19,6 +19,9 @@ use syn::{
1919
2020extern crate proc_macro;
2121
22+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
23+ // The guide tests will cover these macros.
24+ #[ cfg( not( doctest) ) ]
2225#[ lsp_doc( "guide/src/macros/classes.md" ) ]
2326#[ proc_macro_attribute]
2427pub fn php_class ( args : TokenStream , input : TokenStream ) -> TokenStream {
@@ -30,6 +33,9 @@ pub fn php_class(args: TokenStream, input: TokenStream) -> TokenStream {
3033 . into ( )
3134}
3235
36+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
37+ // The guide tests will cover these macros.
38+ #[ cfg( not( doctest) ) ]
3339#[ lsp_doc( "guide/src/macros/function.md" ) ]
3440#[ proc_macro_attribute]
3541pub fn php_function ( args : TokenStream , input : TokenStream ) -> TokenStream {
@@ -41,6 +47,9 @@ pub fn php_function(args: TokenStream, input: TokenStream) -> TokenStream {
4147 . into ( )
4248}
4349
50+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
51+ // The guide tests will cover these macros.
52+ #[ cfg( not( doctest) ) ]
4453#[ lsp_doc( "guide/src/macros/constant.md" ) ]
4554#[ proc_macro_attribute]
4655pub fn php_const ( _args : TokenStream , input : TokenStream ) -> TokenStream {
@@ -49,6 +58,9 @@ pub fn php_const(_args: TokenStream, input: TokenStream) -> TokenStream {
4958 constant:: parser ( input) . into ( )
5059}
5160
61+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
62+ // The guide tests will cover these macros.
63+ #[ cfg( not( doctest) ) ]
5264#[ lsp_doc( "guide/src/macros/module.md" ) ]
5365#[ proc_macro_attribute]
5466pub fn php_module ( args : TokenStream , input : TokenStream ) -> TokenStream {
@@ -60,6 +72,9 @@ pub fn php_module(args: TokenStream, input: TokenStream) -> TokenStream {
6072 . into ( )
6173}
6274
75+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
76+ // The guide tests will cover these macros.
77+ #[ cfg( not( doctest) ) ]
6378#[ lsp_doc( "guide/src/macros/impl.md" ) ]
6479#[ proc_macro_attribute]
6580pub fn php_impl ( args : TokenStream , input : TokenStream ) -> TokenStream {
@@ -71,6 +86,9 @@ pub fn php_impl(args: TokenStream, input: TokenStream) -> TokenStream {
7186 . into ( )
7287}
7388
89+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
90+ // The guide tests will cover these macros.
91+ #[ cfg( not( doctest) ) ]
7492#[ lsp_doc( "guide/src/macros/extern.md" ) ]
7593#[ proc_macro_attribute]
7694pub fn php_extern ( _: TokenStream , input : TokenStream ) -> TokenStream {
@@ -81,6 +99,9 @@ pub fn php_extern(_: TokenStream, input: TokenStream) -> TokenStream {
8199 . into ( )
82100}
83101
102+ // Not included in the doc tests, as they depend on `ext-php-rs` being available.
103+ // The guide tests will cover these macros.
104+ #[ cfg( not( doctest) ) ]
84105#[ lsp_doc( "guide/src/macros/zval_convert.md" ) ]
85106#[ proc_macro_derive( ZvalConvert ) ]
86107pub fn zval_convert_derive ( input : TokenStream ) -> TokenStream {
@@ -91,6 +112,7 @@ pub fn zval_convert_derive(input: TokenStream) -> TokenStream {
91112 . into ( )
92113}
93114
115+ #[ cfg( not( doctest) ) ]
94116/// Defines an `extern` function with the Zend fastcall convention based on
95117/// operating system.
96118///
0 commit comments