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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

include user headers in before/after blocks #1436

Merged
merged 2 commits into from Sep 19, 2022
Merged

Conversation

mstimberg
Copy link
Member

The after_run and before_run code blocks (only used in a few templates) were including support code, but not user-provided header files. This means that user-defined functions that relied on external header files were not compiling correctly. The fix is rather trivial and has considerably fewer lines of code than the new test 馃槉

See https://brian.discourse.group/t/how-to-use-prefs-devices-cpp-standalone-extra-make-args-unix/783 for the discussion that triggered this PR (and thanks to @wxie2013 for reporting it!).

@mstimberg mstimberg merged commit d6d4443 into master Sep 19, 2022
@mstimberg mstimberg deleted the fix_headers_before_after branch September 19, 2022 15:06
mstimberg added a commit to brian-team/brian2cuda that referenced this pull request Jul 10, 2023
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.

None yet

2 participants