Skip to content

Conversation

nicholasbishop
Copy link
Member

@nicholasbishop nicholasbishop commented Sep 28, 2024

This also drops all use of deprecated SystemTable struct from macro tests.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Minor cleanup; a method usually refers to a function in an impl, not a
free-standing function like `main`.
Also delete the two unnamed arg tests, those will no longer be relevant after
the next commit when `entry` will require a zero-arg function.

Leave the entry_bad_arg test unmodified for now, as it will need additional
changes in the next commit.
The entry function is now required to have zero arguments.
// Fill in the image handle and system table arguments automatically.
let image_handle_ident = quote!(internal_image_handle);
let system_table_ident = quote!(internal_system_table);
f.sig.inputs = parse_quote_spanned!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks for working on this!

(I'm always happy if I do not have to write codegen code by myself.. its tricky 😀)

Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phip1611 phip1611 added this pull request to the merge queue Oct 1, 2024
Merged via the queue into rust-osdev:main with commit 14a0d14 Oct 1, 2024
14 checks passed
@nicholasbishop nicholasbishop deleted the bishop-macros-cleanup branch October 1, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants