Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 24, 2023

I had to add declaration for a few GL extensions which we define in JS both via the ARB name as well as the base name.

if '_main' in settings.EXPORTED_FUNCTIONS:
settings.EXPORT_IF_DEFINED.append('__main_argc_argv')
elif settings.ASSERTIONS:
elif settings.ASSERTIONS and not settings.STANDALONE_WASM:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is drive by fix. I notices that we were generating the "main exists but not exported" warning in standalone mode, where it does not apply (since we export _start instead and its not optional in the same way)

Copy link
Member

Choose a reason for hiding this comment

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

sgtm but please add a comment on the source explaining that.

@sbc100 sbc100 requested a review from kripken April 24, 2023 17:02
if '_main' in settings.EXPORTED_FUNCTIONS:
settings.EXPORT_IF_DEFINED.append('__main_argc_argv')
elif settings.ASSERTIONS:
elif settings.ASSERTIONS and not settings.STANDALONE_WASM:
Copy link
Member

Choose a reason for hiding this comment

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

sgtm but please add a comment on the source explaining that.

I had to add declaration for a few GL extensions which we define in JS
both via the ARB name as well as the base name.
@sbc100 sbc100 enabled auto-merge (squash) April 24, 2023 20:10
@sbc100 sbc100 merged commit e3f334c into main Apr 24, 2023
@sbc100 sbc100 deleted the gen_gl_sigs branch April 24, 2023 21:23
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.

3 participants