prusnak / micropython-extmod-generator

Generator for Micropython external modules written in C
MIT License
21 stars 6 forks source link

Feature/var define #6

Closed IhorNehrutsa closed 1 year ago

IhorNehrutsa commented 3 years ago

Some comments in code.

prusnak commented 3 years ago

Can you please also update example/modexample.c to see how the generated code looks like?

IhorNehrutsa commented 3 years ago

All CONSTANT_TYPES = (type(None), int, bool, float, str, tuple) supported as module constants and class constants in generated C code. ESP32 port tested.

IhorNehrutsa commented 3 years ago

The correct name for this feature is 'module_and_class_constanst'. I think it is ready for use. The next feature will be 'function_params_and_return'.

IhorNehrutsa commented 3 years ago

Oh, I'm sorry. git-flow closed the PR.

IhorNehrutsa commented 3 years ago

Not today. But maybe we could get the source code from 'module.py'?