diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:27:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:32:09 +0000 |
commit | 51dfcb4bb7613ed164952712d9a5235a7b833cde (patch) | |
tree | c1856c7db0ff6d5ae51190be4325804a0aad43f4 /py/emit.h | |
parent | db1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff) | |
download | micropython-51dfcb4bb7613ed164952712d9a5235a7b833cde.tar.gz micropython-51dfcb4bb7613ed164952712d9a5235a7b833cde.zip |
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -24,6 +24,13 @@ * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_EMIT_H__ +#define __MICROPY_INCLUDED_PY_EMIT_H__ + +#include "py/lexer.h" +#include "py/scope.h" +#include "py/runtime0.h" + /* Notes on passes: * We don't know exactly the opcodes in pass 1 because they depend on the * closing over of variables (LOAD_CLOSURE, BUILD_TUPLE, MAKE_CLOSURE), which @@ -33,10 +40,6 @@ * This is problematic for some emitters (x64) since they need to know the maximum * stack size to compile the entry to the function, and this affects code size. */ -#ifndef __MICROPY_INCLUDED_PY_EMIT_H__ -#define __MICROPY_INCLUDED_PY_EMIT_H__ - -#include "py/runtime0.h" typedef enum { MP_PASS_SCOPE = 1, // work out id's and their kind, and number of labels |