Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMDevice/MMCore[J]: Remove unused macro defs #436

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

marktsuchida
Copy link
Member

Remove preprocessor definitions from MMDevice/MMCore/MMCoreJ_wrap .vcxproj files

This is to maintain the cleanup done in #415 (specifically, 4536cc0) -- to prevent the vcxproj build from going out of sync with the experimental Meson build.

  • _DEBUG - the compiler defines this when using the debug runtime; redundant
  • _LIB - added by VS by default for static libs; we don't use it
  • _USRDLL - added by VS by default for DLLs; we don't use it
  • _WINDOWS - added by VS by default; we don't use it
  • WIN32 - added by VS by default; we prefer _WIN32, defined by the compiler

Also delete the single use of _DEBUG in CMMCore::getVersionInfo(). It is better not to produce a different version string in a debug build, because applications may parse this string (for example, a pymmcore test does that).

All the other macros removed here are not currently used in these projects.

Remove preprocessor definitions from MMDevice/MMCore/MMCoreJ_wrap
.vcxproj files

This is to maintain the cleanup done in #415 (specifically,
4536cc0) -- to prevent the vcxproj
build from going out of sync with the experimental Meson build.

- `_DEBUG` - the compiler defines this when using the debug runtime; redundant
- `_LIB` - added by VS by default for static libs; we don't use it
- `_USRDLL` - added by VS by default for DLLs; we don't use it
- `_WINDOWS` - added by VS by default; we don't use it
- `WIN32` - added by VS by default; we prefer `_WIN32`, defined by the compiler

Also delete the single use of `_DEBUG` in `CMMCore::getVersionInfo()`.
It is better not to produce a different version string in a debug build,
because applications may parse this string (for example, a pymmcore test
does that).

All the other macros removed here are not currently used in these
projects.
@marktsuchida marktsuchida merged commit e6c7cdc into main Jan 24, 2024
3 checks passed
@marktsuchida marktsuchida deleted the remove-unused-vs-macros branch January 24, 2024 22:28
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