pub(crate) fn insert_hive_defines(&self) {
        log::debug!(
            "Inserting the hive_defines.S files into the '{}' testprogram",
            self.name
        );
        let open_options = OpenOptions::new()
            .write(true)
            .create(true)
            .truncate(true)
            .to_owned();

        let mut arm_defines = open_options.open(self.path.to_owned().join("arm/hive_defines.S")).expect("Failed to open/create the hive_defines.S files. This might be caused by insufficient permissions.");
        let mut riscv_defines = open_options.open(self.path.to_owned().join("riscv/hive_defines.S")).expect("Failed to open/create the hive_defines.S files. This might be caused by insufficient permissions.");

        let content = defines::generate_defines();

        arm_defines
            .write_all(content.as_bytes())
            .expect("Failed to write the hive_defines.S file contents.");
        riscv_defines
            .write_all(content.as_bytes())
            .expect("Failed to write the hive_defines.S file contents.");
    }
/// Inserts a newly generated `hive_defines.S` file into the provided testprogram
///
/// # Panics
/// If any file operation fails. This is usually caused by wrong/insufficient permissions or corrupted installs
Inserts a newly generated `hive_defines.S` file into the provided testprogram
Inserts a newly generated ` hive_defines . S ` file into the provided testprogram
pub(crate) fn insert_hive_defines(&self) {
        log::debug!(
            "Inserting the hive_defines.S files into the '{}' testprogram",
            self.name
        );
        let open_options = OpenOptions::new()
            .write(true)
            .create(true)
            .truncate(true)
            .to_owned();
        let mut arm_defines = open_options.open(self.path.to_owned().join("arm/hive_defines.S")).expect("Failed to open/create the hive_defines.S files. This might be caused by insufficient permissions.");
        let mut riscv_defines = open_options.open(self.path.to_owned().join("riscv/hive_defines.S")).expect("Failed to open/create the hive_defines.S files. This might be caused by insufficient permissions.");
        let content = defines::generate_defines();
        arm_defines
            .write_all(content.as_bytes())
            .expect("Failed to write the hive_defines.S file contents.");
        riscv_defines
            .write_all(content.as_bytes())
            .expect("Failed to write the hive_defines.S file contents.");
    }
pub ( crate ) fn insert_hive_defines ( & self ) { log :: debug ! ( " " self name ) ; let open_options = OpenOptions :: new ( ) . write ( true ) . create ( true ) . truncate ( true ) . to_owned ( ) ; let mut arm_defines = open_options . open ( self . path . to_owned ( ) . join ( " " ) ) . expect ( " " ) ; let mut riscv_defines = open_options . open ( self . path . to_owned ( ) . join ( " " ) ) . expect ( " " ) ; let content = defines :: generate_defines ( ) ; arm_defines . write_all ( content . as_bytes ( ) ) . expect ( " " ) ; riscv_defines . write_all ( content . as_bytes ( ) ) . expect ( " " ) ; }
Inserts a newly generated `hive_defines.S` file into the provided testprogram
Inserts a newly generated ` hive_defines . S ` file into the provided testprogram
&self
panics
If any file operation fails. This is usually caused by wrong/insufficient permissions or corrupted installs
If any file operation fails . This is usually caused by wrong / insufficient permissions or corrupted installs