1 2 3 4 5 6 7 8 9 10 11
//! Internal, public functions that are called from downstream extensions.
/// Called by startup functions registered with the [`#[php_startup]`] macro.
/// Initializes all classes that are defined by ext-php-rs (i.e. `Closure`).
///
/// [`#[php_startup]`]: crate::php_startup
#[inline(always)]
pub fn ext_php_rs_startup() {
#[cfg(feature = "closure")]
crate::closure::Closure::build();
}