diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-25 23:29:19 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-27 16:12:17 +0200 |
commit | 8ab6f9067412d9f73fe88d42d81c0b4c4f1fd20b (patch) | |
tree | 1b0609e517add9bf37c10e47d13fc556657cbb9c /py/compile.h | |
parent | 343266ea519927a7f1bc0a27f9c8af768d1125f7 (diff) | |
download | micropython-8ab6f9067412d9f73fe88d42d81c0b4c4f1fd20b.tar.gz micropython-8ab6f9067412d9f73fe88d42d81c0b4c4f1fd20b.zip |
py: Move to guarded includes for compile.h and related headers.
Diffstat (limited to 'py/compile.h')
-rw-r--r-- | py/compile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/compile.h b/py/compile.h index cef20efce2..9d612da532 100644 --- a/py/compile.h +++ b/py/compile.h @@ -23,6 +23,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_COMPILE_H__ +#define __MICROPY_INCLUDED_PY_COMPILE_H__ + +#include "py/lexer.h" +#include "py/parse.h" +#include "py/emitglue.h" // These must fit in 8 bits; see scope.h enum { @@ -38,3 +44,5 @@ mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is // this is implemented in runtime.c mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_dict_t *globals, mp_obj_dict_t *locals); + +#endif // __MICROPY_INCLUDED_PY_COMPILE_H__ |