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

[Lang] [bug] Let static assert be in static scope #8217

Merged
merged 1 commit into from
Jun 25, 2023

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Jun 25, 2023

Issue: fix #8218

Brief Summary

🤖 Generated by Copilot at ec8cb2c

Add static_assert feature for compile-time assertions in Taichi. Modify ast_transformer.py to handle the static_assert decorator.

Walkthrough

🤖 Generated by Copilot at ec8cb2c

  • Add support for static_assert decorator to enable compile-time assertions (link, link)

@netlify
Copy link

netlify bot commented Jun 25, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit ec8cb2c
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6497e4630f71c50008117af4
😎 Deploy Preview https://deploy-preview-8217--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@neozhaoliang neozhaoliang left a comment

Choose a reason for hiding this comment

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

LGTM!

@neozhaoliang neozhaoliang merged commit 6e8ee87 into taichi-dev:master Jun 25, 2023
@lin-hitonami lin-hitonami deleted the static_assert branch June 25, 2023 08:01
PGZXB pushed a commit to PGZXB/taichi that referenced this pull request Jul 13, 2023
Issue: fix taichi-dev#8218 

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at ec8cb2c</samp>

Add `static_assert` feature for compile-time assertions in Taichi.
Modify `ast_transformer.py` to handle the `static_assert` decorator.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at ec8cb2c</samp>

* Add support for `static_assert` decorator to enable compile-time
assertions
([link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fL538-R538),
[link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fR1119))
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.

False warning on example marching square
2 participants