Skip to content

Support ->LibX.fun_name in the interpreter#16194

Merged
straight-shoota merged 5 commits intocrystal-lang:masterfrom
ysbaddaden:feature/add-interpreter-support-for-proc-pointer-to-lib-fun
Oct 18, 2025
Merged

Support ->LibX.fun_name in the interpreter#16194
straight-shoota merged 5 commits intocrystal-lang:masterfrom
ysbaddaden:feature/add-interpreter-support-for-proc-pointer-to-lib-fun

Conversation

@ysbaddaden
Copy link
Collaborator

@ysbaddaden ysbaddaden commented Oct 9, 2025

Adds support for a ProcPointer to an external lib functions such as ->LibPCRE2.match_data_free.

The LLVM codegen handles more cases, like having closure data and references to self, but I couldn't trigger these in manual tests, so I assume the LiteralExpander often expands the ProcPointer into a ProcLiteral.

Noticed in #16175.
Related to #12495 and #16044.

Adds support for `ProcPointer` to an external lib function.
@ysbaddaden ysbaddaden added this to the 1.19.0 milestone Oct 13, 2025
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@straight-shoota straight-shoota merged commit 6aa2b8e into crystal-lang:master Oct 18, 2025
45 of 46 checks passed
@ysbaddaden ysbaddaden deleted the feature/add-interpreter-support-for-proc-pointer-to-lib-fun branch October 18, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants