summaryrefslogtreecommitdiffstatshomepage
path: root/py/stackctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c
index c2566ebad9..303e9cffff 100644
--- a/py/stackctrl.c
+++ b/py/stackctrl.c
@@ -24,7 +24,12 @@
* THE SOFTWARE.
*/
+// This API is deprecated, please use py/cstack.h instead
+
#include "py/runtime.h"
+
+#if !MICROPY_PREVIEW_VERSION_2
+
#include "py/stackctrl.h"
void mp_stack_ctrl_init(void) {
@@ -62,3 +67,5 @@ void mp_stack_check(void) {
}
#endif // MICROPY_STACK_CHECK
+
+#endif // !MICROPY_PREVIEW_VERSION_2