Files
Upsilon/python/port/helpers.h
Léa Saviot 1e78f20ac1 [python] Return after interruption in possibly long turtle methods
forward(100) with speed = 3 can now be interrupted.
2018-12-06 11:48:42 +01:00

21 lines
382 B
C

#ifndef PYTHON_PORT_HELPERS_H
#define PYTHON_PORT_HELPERS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
// These methods return true if they have been interrupted
bool micropython_port_vm_hook_loop();
bool micropython_port_interruptible_msleep(uint32_t delay);
bool micropython_port_interrupt_if_needed();
#ifdef __cplusplus
}
#endif
#endif