Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-M-Lucas committed Aug 6, 2024
1 parent 93e5db6 commit 1b9154d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/root/builtin/functions/printnl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use unique_type_id::UniqueTypeId;

use crate::root::builtin::{BuiltinInlineFunction, f_id, InlineFunctionGenerator};
use crate::root::builtin::{f_id, BuiltinInlineFunction, InlineFunctionGenerator};
use crate::root::name_resolver::resolve_function_signatures::FunctionSignature;
use crate::root::parser::parse_parameters::SelfType;
use crate::root::shared::common::{FunctionID, TypeID};
Expand All @@ -25,19 +25,15 @@ impl BuiltinInlineFunction for PrintNL {
}

fn signature(&self) -> FunctionSignature {
FunctionSignature::new_inline_builtin(
SelfType::None,
&[],
None,
)
FunctionSignature::new_inline_builtin(SelfType::None, &[], None)
}

fn inline(&self) -> InlineFunctionGenerator {
|_, _, gt, sz| -> String {
let id = format!("{}_fstr", Self::id().string_id());
let data = format!("{id} db `\\n`,0");
gt.add_readonly_data(&id, &data);

format!(
" mov rdi, {id}
mov al, 0
Expand Down

0 comments on commit 1b9154d

Please sign in to comment.