diff options
author | blmorris <bryan.morrissey@gmail.com> | 2014-07-15 12:28:49 -0400 |
---|---|---|
committer | blmorris <bryan.morrissey@gmail.com> | 2014-07-15 12:28:49 -0400 |
commit | 0429d35f37532d2a981e704f014a248da9b157d8 (patch) | |
tree | 89b46c4453ba89072ac6926b930acf1276a79b7b /py/misc.h | |
parent | 847a6b30b17493853322532a40f48afb1d975d2e (diff) | |
parent | dce8876dbe272d34d8d28aac21b4a4c3bdea0317 (diff) |
Merge https://github.com/micropython/micropython
Diffstat (limited to 'py/misc.h')
-rw-r--r-- | py/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -84,6 +84,9 @@ int m_get_peak_bytes_allocated(void); // get the number of elements in a fixed-size array #define MP_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) +// align ptr to the nearest multiple of "alignment" +#define MP_ALIGN(ptr, alignment) (void*)(((mp_uint_t)(ptr) + ((alignment) - 1)) & ~((alignment) - 1)) + /** unichar / UTF-8 *********************************************/ typedef int unichar; // TODO |