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

py/dynruntime: Add mp_obj_exception_init function to define C exception. #14497

Merged

Conversation

dpgeorge
Copy link
Member

This allows defining custom exceptions in C in dynamic native modules. An example of this is added to the existing features4 example.

Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.39%. Comparing base (a919ce2) to head (d532f96).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #14497   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files         161      161           
  Lines       21204    21204           
=======================================
  Hits        20864    20864           
  Misses        340      340           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:   +24 +0.003% standard
      stm32:    +4 +0.001% PYBV10
     mimxrt:    +8 +0.002% TEENSY40
        rp2:    +8 +0.002% RPI_PICO
       samd:    +4 +0.002% ADAFRUIT_ITSYBITSY_M4_EXPRESS

Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the py-dynruntime-create-c-exception branch from b6570e1 to d532f96 Compare May 23, 2024 04:21
@dpgeorge dpgeorge merged commit d532f96 into micropython:master May 23, 2024
64 checks passed
@dpgeorge dpgeorge deleted the py-dynruntime-create-c-exception branch May 23, 2024 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant