Skip to content
Snippets Groups Projects
Commit a509d5c2 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

more debug added

Rev: lib/modules/Stdio.pmod:1.27
parent dcfea10f
Branches
Tags
No related merge requests found
......@@ -137,6 +137,10 @@ class File
static void my_read_callback()
{
#if defined(__STDIO_DEBUG) && !defined(__NT__)
if(!::peek())
throw( ({"Read callback with no data to read!\n",backtrace()}) );
#endif
string s=::read(8192,1);
if(s && strlen(s))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment