Rename to include_xm to match the rest of agb

This commit is contained in:
Gwilym Inzani 2023-07-23 20:22:22 +01:00
parent 6cb8f68104
commit 70d34f1fc8
4 changed files with 9 additions and 9 deletions

View file

@ -3,9 +3,9 @@
use agb::sound::mixer::Frequency;
use agb::Gba;
use agb_tracker::{import_xm, Track, Tracker};
use agb_tracker::{include_xm, Track, Tracker};
const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
#[agb::entry]
fn main(mut gba: Gba) -> ! {

View file

@ -3,9 +3,9 @@
use agb::sound::mixer::Frequency;
use agb::Gba;
use agb_tracker::{import_xm, Track, Tracker};
use agb_tracker::{include_xm, Track, Tracker};
const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
#[agb::entry]
fn main(mut gba: Gba) -> ! {

View file

@ -27,9 +27,9 @@
//! #![no_main]
//!
//! use agb::{Gba, sound::mixer::Frequency};
//! use agb_tracker::{import_xm, Track, Tracker};
//! use agb_tracker::{include_xm, Track, Tracker};
//!
//! const DB_TOFFE: Track = import_xm!("examples/db_toffe.xm");
//! const DB_TOFFE: Track = include_xm!("examples/db_toffe.xm");
//!
//! #[agb::entry]
//! fn main(mut gba: Gba) -> ! {
@ -75,7 +75,7 @@ use agb::{
/// Import an XM file. Only available if you have the `xm` feature enabled (enabled by default).
#[cfg(feature = "xm")]
pub use agb_xm::import_xm;
pub use agb_xm::include_xm;
#[doc(hidden)]
pub mod __private {
@ -83,7 +83,7 @@ pub mod __private {
pub use agb_tracker_interop;
}
/// A reference to a track. You should create this using one of the import macros.
/// A reference to a track. You should create this using one of the include macros.
pub use agb_tracker_interop::Track;
/// Stores the required state in order to play tracker music.

View file

@ -3,6 +3,6 @@ use proc_macro_error::proc_macro_error;
#[proc_macro_error]
#[proc_macro]
pub fn import_xm(args: TokenStream) -> TokenStream {
pub fn include_xm(args: TokenStream) -> TokenStream {
agb_xm_core::agb_xm_core(args.into()).into()
}