#![feature(asm)]
#![feature(core_intrinsics)]
#![feature(exclusive_range_pattern)]
#[macro_use]
extern crate serde;
extern crate bincode;
extern crate debug_stub_derive;
extern crate enum_primitive_derive;
extern crate num;
extern crate num_traits;
extern crate bit;
extern crate bitfield;
extern crate bitflags;
extern crate bit_set;
extern crate byteorder;
#[cfg(feature = "debugger")]
extern crate rustyline;
extern crate nom;
extern crate ansi_term;
extern crate colored; // not needed in Rust 2018
extern crate zip;
pub mod util;
pub mod core;
pub mod disass;
pub mod debugger;
pub trait VideoInterface {
fn render(&mut self, buffer: &[u32]);
}
pub type StereoSample = (i16, i16);
pub trait AudioInterface {
fn get_sample_rate(&self) -> i32;
#[allow(unused_variables)]
fn push_sample(&mut self, samples: StereoSample) {}
pub trait InputInterface {
fn poll(&mut self) -> u16;
pub mod prelude {
pub use super::core::arm7tdmi;
pub use super::core::cartridge::Cartridge;
pub use super::core::{GBAError, GBAResult, GameBoyAdvance};
pub use super::debugger::Debugger;
pub use super::util::read_bin_file;
pub use super::{AudioInterface, InputInterface, VideoInterface};