mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
Upgrade to MicroPython 1.9.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* This file is part of the Micro Python project, http://micropython.org/
|
||||
* This file is part of the MicroPython project, http://micropython.org/
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
@@ -27,7 +27,6 @@
|
||||
#define MICROPY_INCLUDED_PY_RUNTIME_H
|
||||
|
||||
#include "py/mpstate.h"
|
||||
#include "py/obj.h"
|
||||
|
||||
typedef enum {
|
||||
MP_VM_RETURN_NORMAL,
|
||||
@@ -57,9 +56,9 @@ typedef struct _mp_arg_t {
|
||||
mp_arg_val_t defval;
|
||||
} mp_arg_t;
|
||||
|
||||
// defined in objtype.c
|
||||
extern const qstr mp_unary_op_method_name[];
|
||||
extern const qstr mp_binary_op_method_name[];
|
||||
// Tables mapping operator enums to qstrs, defined in objtype.c
|
||||
extern const byte mp_unary_op_method_name[];
|
||||
extern const byte mp_binary_op_method_name[];
|
||||
|
||||
void mp_init(void);
|
||||
void mp_deinit(void);
|
||||
@@ -96,8 +95,8 @@ void mp_store_global(qstr qst, mp_obj_t obj);
|
||||
void mp_delete_name(qstr qst);
|
||||
void mp_delete_global(qstr qst);
|
||||
|
||||
mp_obj_t mp_unary_op(mp_uint_t op, mp_obj_t arg);
|
||||
mp_obj_t mp_binary_op(mp_uint_t op, mp_obj_t lhs, mp_obj_t rhs);
|
||||
mp_obj_t mp_unary_op(mp_unary_op_t op, mp_obj_t arg);
|
||||
mp_obj_t mp_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs);
|
||||
|
||||
mp_obj_t mp_call_function_0(mp_obj_t fun);
|
||||
mp_obj_t mp_call_function_1(mp_obj_t fun, mp_obj_t arg);
|
||||
@@ -149,8 +148,8 @@ NORETURN void mp_raise_msg(const mp_obj_type_t *exc_type, const char *msg);
|
||||
//NORETURN void nlr_raise_msg_varg(const mp_obj_type_t *exc_type, const char *fmt, ...);
|
||||
NORETURN void mp_raise_ValueError(const char *msg);
|
||||
NORETURN void mp_raise_TypeError(const char *msg);
|
||||
NORETURN void mp_raise_NotImplementedError(const char *msg);
|
||||
NORETURN void mp_raise_OSError(int errno_);
|
||||
NORETURN void mp_not_implemented(const char *msg); // Raise NotImplementedError with given message
|
||||
NORETURN void mp_exc_recursion_depth(void);
|
||||
|
||||
#if MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG
|
||||
@@ -175,7 +174,7 @@ void mp_native_raise(mp_obj_t o);
|
||||
#if MICROPY_WARNINGS
|
||||
void mp_warning(const char *msg, ...);
|
||||
#else
|
||||
#define mp_warning(msg, ...)
|
||||
#define mp_warning(...)
|
||||
#endif
|
||||
|
||||
#endif // MICROPY_INCLUDED_PY_RUNTIME_H
|
||||
|
||||
Reference in New Issue
Block a user