summaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-25 23:29:19 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-27 16:12:17 +0200
commit8ab6f9067412d9f73fe88d42d81c0b4c4f1fd20b (patch)
tree1b0609e517add9bf37c10e47d13fc556657cbb9c /py/emit.h
parent343266ea519927a7f1bc0a27f9c8af768d1125f7 (diff)
py: Move to guarded includes for compile.h and related headers.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/emit.h b/py/emit.h
index 1f1798fdf..8b9b368c2 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -33,6 +33,10 @@
* 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
@@ -195,3 +199,5 @@ extern const emit_inline_asm_method_table_t emit_inline_thumb_method_table;
emit_inline_asm_t *emit_inline_thumb_new(mp_uint_t max_num_labels);
void emit_inline_thumb_free(emit_inline_asm_t *emit);
+
+#endif // __MICROPY_INCLUDED_PY_EMIT_H__