diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-29 00:21:41 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-29 00:21:41 +0200 |
commit | 7f11c794a53b78dc90d924b8c44e6d8165d5b4af (patch) | |
tree | 3e1e7c0f00bafdfdccdad16c643c3914c7c36edc /py/obj.h | |
parent | 1801421f6d204dfae9453187e1f70e261b230a9e (diff) | |
download | micropython-7f11c794a53b78dc90d924b8c44e6d8165d5b4af.tar.gz micropython-7f11c794a53b78dc90d924b8c44e6d8165d5b4af.zip |
mp_obj_new_bytearray_by_ref(): Allow to create array by reference.
This is special feature for FFI.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -349,6 +349,7 @@ extern const mp_obj_type_t zip_type; // array extern const mp_obj_type_t array_type; uint mp_obj_array_len(mp_obj_t self_in); +mp_obj_t mp_obj_new_bytearray_by_ref(uint n, void *items); // functions typedef struct _mp_obj_fun_native_t { // need this so we can define const objects (to go in ROM) |