Reply To: MWEdit

Home Forums Projects MWEdit Reply To: MWEdit

#5360

Okay, I just finished moving the macros from common/dl_base.h to the proper files. Now I need to go through the entire codebase and correct all of the includes, making sure everything is where it needs to be.

This is a downside to making heavy use of the preprocessor: it can cause conflicts due to how compilers work.

  1. The preprocessor runs, doing full text replacement in the order that things appear
  2. The compiler runs, converting everything into an AST and object code
  3. Code is linked together into a single unit

Ultimately, we’ll want to pare things down to limit the potential for bugs in the future. I don’t have an issue on the tracker but I did mention it sometime last year in the thread, it just hasn’t made it over to GitHub yet. Will get it added at some point.

I also need to go through and remove the boolean macros and swap them out for bool, true, and false. Going to take a bit as the UI makes heavy use the macros