You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
unix, file.c: adhere to coding conventions.
This commit is contained in:
+2
-1
@@ -20,8 +20,9 @@ typedef struct _mp_obj_fdfile_t {
|
||||
|
||||
#ifdef MICROPY_CPYTHON_COMPAT
|
||||
void check_fd_is_open(const mp_obj_fdfile_t *o) {
|
||||
if (o->fd < 0)
|
||||
if (o->fd < 0) {
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file"));
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define check_fd_is_open(o)
|
||||
|
||||
Reference in New Issue
Block a user