Skip to content

Conversation

@Unusuario2
Copy link

@Unusuario2 Unusuario2 commented Jun 17, 2025

This PR introduces a small utility macro IsMapbase() to improve readability and maintainability when working with Mapbase-dependent code.

Future updates will support larger mods with many Mapbase features. Using #ifdef MAPBASE everywhere can clutter the code or take multiple lines. Adding IsMapbase() gives programmers a cleaner, one-line way to check for Mapbase support.

Example:
if constexpr (IsMapbase()) { // Mapbase-specific logic }
instead of
#ifdef MAPBASE // Mapbase-specific logic #endif //MAPBASE


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@Unusuario2 Unusuario2 changed the base branch from master to develop June 27, 2025 15:03
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.

1 participant