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

[embind] Generate better TS def for pointers. #22184

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brendandahl
Copy link
Collaborator

@brendandahl brendandahl commented Jul 3, 2024

Pointers should be allowed to be null in the TS definitions.

Fixes #22182

Pointers should be allowed to be null in the TS definitions.

Fixes emscripten-core#22182
@@ -575,7 +583,7 @@ var LibraryEmbind = {
context,
isPureVirtual,
isAsync) {
createFunctionDefinition(methodName, argCount, rawArgTypesAddr, context, true, isAsync, (funcDef) => {
createFunctionDefinition(methodName, argCount, rawArgTypesAddr, context, true, false, isAsync, (funcDef) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if its time to make this function take a property bag instead of all those arguments? (As a followup?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was probably time a few arguments ago.

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.

--emit-tsd to generate nullable types for pointer types
2 participants