diff options
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ typedef struct OpenFile { #define FMODE_BINMODE 4 #define FMODE_SYNC 8 -#define GetOpenFile(obj,fp) ((fp) = RFILE(obj)->fptr) +#define GetOpenFile(obj,fp) io_check_closed((fp) = RFILE(obj)->fptr) #define MakeOpenFile(obj, fp) do {\ fp = RFILE(obj)->fptr = ALLOC(OpenFile);\ |