Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Create print warning helper function #76

Open Noah2610 opened 4 years ago

Noah2610 commented 4 years ago

I print a lot of warnings throughout the app, especially when it comes to entity config stuff. I always write it like this:

eprintln!("[WARNING]\n    This is a warning!");

I should just create a helper function for printing warning messages, so I can guarantee the same formatting for warning messages.

Ideally this would be a macro, and not a function. Would be a good chance to learn how to write macros.