Commit 19a1942
Fix BIOIMAGE_PROFILE_SCOPE to generate unique identifiers
`_bp_##__LINE__` does not expand __LINE__ (token-paste suppresses operand
expansion), so every BIOIMAGE_PROFILE_SCOPE declared the same identifier
`_bp___LINE__`. It compiled only because each call site happened to wrap its
scope in its own block; two scopes in one block (the documented per-phase
pattern) would be a redefinition error in BIOIMAGE_PROFILE=ON builds. Add the
standard two-level concat indirection so __LINE__ is expanded first.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 38d395e commit 19a1942
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
0 commit comments