py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
This commit is contained in:
6
py/nlr.h
6
py/nlr.h
@@ -23,6 +23,8 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#ifndef __MICROPY_INCLUDED_PY_NLR_H__
|
||||
#define __MICROPY_INCLUDED_PY_NLR_H__
|
||||
|
||||
// non-local return
|
||||
// exception handling, basically a stack of setjmp/longjmp buffers
|
||||
@@ -31,6 +33,8 @@
|
||||
#include <setjmp.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "py/mpconfig.h"
|
||||
|
||||
typedef struct _nlr_buf_t nlr_buf_t;
|
||||
struct _nlr_buf_t {
|
||||
// the entries here must all be machine word size
|
||||
@@ -91,3 +95,5 @@ void nlr_jump_fail(void *val);
|
||||
nlr_jump(_val); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#endif // __MICROPY_INCLUDED_PY_NLR_H__
|
||||
|
||||
Reference in New Issue
Block a user