fn write_ptrs<W>(registry: &Registry, dest: &mut W) -> io::Result<()>
where
    W: io::Write,
{
    writeln!(
        dest,
        "mod storage {{
            #![allow(non_snake_case)]
            #![allow(non_upper_case_globals)]
            use super::__gl_imports::raw;
            use super::FnPtr;"
    )?;

    for c in &registry.cmds {
        writeln!(
            dest,
            "pub static mut {name}: FnPtr = FnPtr {{
                f: super::missing_fn_panic as *const raw::c_void,
                is_loaded: false
            }};",
            name = c.proto.ident
        )?;
    }

    writeln!(dest, "}}")
}
/// Creates a `storage` module which contains a static `FnPtr` per GL command in the registry.
Creates a `storage` module which contains a static `FnPtr` per GL command in the registry.
Creates a ` storage ` module which contains a static ` FnPtr ` per GL command in the registry .
fn write_ptrs<W>(registry: &Registry, dest: &mut W) -> io::Result<()>
where
    W: io::Write,
{
    writeln!(
        dest,
        "mod storage {{
            #![allow(non_snake_case)]
            #![allow(non_upper_case_globals)]
            use super::__gl_imports::raw;
            use super::FnPtr;"
    )?;
    for c in &registry.cmds {
        writeln!(
            dest,
            "pub static mut {name}: FnPtr = FnPtr {{
                f: super::missing_fn_panic as *const raw::c_void,
                is_loaded: false
            }};",
            name = c.proto.ident
        )?;
    }
    writeln!(dest, "}}")
}
fn write_ptrs < W > ( registry : & Registry , dest : & mut W ) -> io :: Result < ( ) > where W : io :: Write , { writeln ! ( dest " " ) ? ; for c in & registry . cmds { writeln ! ( dest " " name c proto ident ) ? ; } writeln ! ( dest " " ) }
Creates a `storage` module which contains a static `FnPtr` per GL command in the registry.
Creates a ` storage ` module which contains a static ` FnPtr ` per GL command in the registry .
registry
&Registry
dest
&mut W