Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e69b7e82
Commit
e69b7e82
authored
May 03, 2014
by
Damien George
Browse files
unix, file.c: adhere to coding conventions.
parent
41f768f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/file.c
View file @
e69b7e82
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment