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/bc.h | |
parent | db1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff) |
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/bc.h')
-rw-r--r-- | py/bc.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,6 +23,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_PY_BC_H__ +#define __MICROPY_INCLUDED_PY_BC_H__ + +#include "py/runtime.h" +#include "py/obj.h" // Exception stack entry typedef struct _mp_exc_stack { @@ -61,3 +66,5 @@ const byte *mp_bytecode_print_str(const byte *ip); #define MP_TAGPTR_TAG0(x) ((mp_uint_t)(x) & 1) #define MP_TAGPTR_TAG1(x) ((mp_uint_t)(x) & 2) #define MP_TAGPTR_MAKE(ptr, tag) ((void*)((mp_uint_t)(ptr) | (tag))) + +#endif // __MICROPY_INCLUDED_PY_BC_H__ |