diff options
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -91,5 +91,16 @@ int stream_read(lua_State * L) s->in.data = buffer; } + return stream_readk(L, LUA_OK, 0); // Intentionally do not pop Stream that's on top of the stack. +} + +/// Continuation function and core implementation of the reading operation from a stream. +/// \param L Lua state running reading operation +/// \param status TODO +/// \param ctx TODO +/// \param Number of the results pushed to the stack +int stream_readk(lua_State * L, int status, lua_KContext ctx) +{ + lua_pop(L, 0); return 0; } |