Skip to content

Main - Add DEBUG_X macros - #1833

Open
PabstMirror wants to merge 1 commit into
masterfrom
debugMacro
Open

Main - Add DEBUG_X macros#1833
PabstMirror wants to merge 1 commit into
masterfrom
debugMacro

Conversation

@PabstMirror

Copy link
Copy Markdown
Contributor

Only run if <DEBUG_MODE_FULL> is defined OR -debug command line parameter is used.
This has a small runtime cost but is usable in scripts compiled at build-time (sqfc).

Allows more logging for people with released versions of mods.
Shouldn't be used inside loops or performance code but the cost is pretty small

is DEBUG too common of a macro and possibly conflict with something?

@Dystopian

Copy link
Copy Markdown
Contributor

Maybe the name should implicitly state that it does work in released versions to prevent misuse, something like RELEASE_DEBUG.

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