Skip to content

Bugfix: making inline legacy internal grackle functions work in C codes#157

Merged
brittonsmith merged 1 commit into
grackle-project:mainfrom
mabruzzo:inline-legacy-bugfix
May 18, 2023
Merged

Bugfix: making inline legacy internal grackle functions work in C codes#157
brittonsmith merged 1 commit into
grackle-project:mainfrom
mabruzzo:inline-legacy-bugfix

Conversation

@mabruzzo

Copy link
Copy Markdown
Collaborator

I had forgotten that the inline specifier works differently in C and C++ while writing PR #139. When I wrote that PR, I had assumed the C++ semantics apply everywhere. It turns out that to achieve the desired behavior, we need to label the functions as static inline (this works in both C and C++).

I had realized this was a problem while doing something totally unrelated in PR #153

I had forgotten that the ``inline`` specifier works differently in C and C++ PR grackle-project#139. When I wrote that PR, I had assumed the C++ semantics. It turns out that to achieve the desired behavior, we need to label the functions as ``static inline``
@brittonsmith brittonsmith added the bug Something isn't working label May 18, 2023
@brittonsmith

Copy link
Copy Markdown
Contributor

Good catch, thanks!

@brittonsmith brittonsmith merged commit 587d131 into grackle-project:main May 18, 2023
@mabruzzo mabruzzo deleted the inline-legacy-bugfix branch September 12, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants