diff options
author | Damien George <damien.p.george@gmail.com> | 2015-07-20 12:18:16 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-07-20 12:18:16 +0100 |
commit | d1367378721d65f97043ad7058f3f8656e9edae8 (patch) | |
tree | 45322de43c87446032f24ed99200761bbdbfa005 /CODECONVENTIONS.md | |
parent | 75b1d881ecfb70a20e0026597bd60a96d1c535c8 (diff) | |
download | micropython-d1367378721d65f97043ad7058f3f8656e9edae8.tar.gz micropython-d1367378721d65f97043ad7058f3f8656e9edae8.zip |
CODECONVENTIONS: Add a short section about how to allocate heap memory.
Diffstat (limited to 'CODECONVENTIONS.md')
-rw-r--r-- | CODECONVENTIONS.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CODECONVENTIONS.md b/CODECONVENTIONS.md index ac04379be5..11cb114a91 100644 --- a/CODECONVENTIONS.md +++ b/CODECONVENTIONS.md @@ -56,6 +56,10 @@ Comments: - Be concise and only write comments for things that are not obvious. - Use `// ` prefix, NOT `/* ... */`. No extra fluff. +Memory allocation: +- Use m_new, m_renew, m_del (and friends) to allocate and free heap memory. + These macros are defined in py/misc.h. + Examples -------- |