Remove dependency on nightly Rust

This commit is contained in:
2024-07-31 10:43:58 -05:00
parent 45b8fa5c8b
commit d4c5005d8a
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
// © 2023-2024 John Breaux
//See LICENSE.md for license
//! Simple frontend for the assembler
#![feature(decl_macro)]
use argp::parse_args_or_exit;
use libmsp430::{
assembler::Assemble,
@@ -66,14 +65,16 @@ mod repl {
use std::io::{stderr, Write};
/// Formats the line number
macro linenr($n: expr) {
format_args!("{:4}: ", $n)
macro_rules! linenr {
($n: expr) => {
format_args!("{:4}: ", $n)
};
}
/// [println], but without the newline
macro printfl ($($x: expr),+) {
macro_rules! printfl {($($x: expr),+) => {
{print!($($x),+); let _ = ::std::io::stdout().flush();}
}
}}
/// Runs the read-evaluate-print loop
pub fn repl(buf: &mut String) -> Result<(), Box<dyn Error>> {