Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d1367378
Commit
d1367378
authored
Jul 20, 2015
by
Damien George
Browse files
CODECONVENTIONS: Add a short section about how to allocate heap memory.
parent
75b1d881
Changes
1
Hide whitespace changes
Inline
Side-by-side
CODECONVENTIONS.md
View file @
d1367378
...
...
@@ -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
--------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment