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

Fix standalone SourceHook compilation #188

Merged
merged 5 commits into from
Aug 4, 2024
Merged

Fix standalone SourceHook compilation #188

merged 5 commits into from
Aug 4, 2024

Conversation

psychonic
Copy link
Member

@psychonic psychonic commented Aug 3, 2024

This slipped by since we didn't have CI running for PRs to any branch except for master. SourceHook was dependent on the mm_LogMessage function which only exists when SourceHook is embedded in MM:S.

While that's the primary use case, using SourceHook outside of MM:S is also meant to be a supported scenario, and has been used in the past (although there may not be any current, external consumers). The SourceHook tests also rely on this.

Rather than explicitly rely on mm_LogMessage for printing the debug messages, this changes the default to just use printf, with MM:S explicitly overriding it. Also, tests are now temporarily disabled on Linux x64 for now, due to known, expected failures.

@psychonic psychonic force-pushed the psy/ci-fixes branch 2 times, most recently from 497c251 to 148ecd3 Compare August 3, 2024 19:27
@psychonic psychonic force-pushed the psy/ci-fixes branch 2 times, most recently from 23ee687 to 76077dd Compare August 4, 2024 15:32
@psychonic psychonic changed the title Fix SourceHook tests Fix standalone SourceHook compilation Aug 4, 2024
@psychonic psychonic marked this pull request as ready for review August 4, 2024 15:43
@psychonic psychonic merged commit f647adf into master Aug 4, 2024
4 checks passed
@psychonic psychonic deleted the psy/ci-fixes branch August 4, 2024 19: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