| 816 | // STREAM |
| 817 | |
| 818 | static int Stream_gc(lua_State* L) |
| 819 | { |
| 820 | DM_LUA_STACK_CHECK(L, 0); |
| 821 | BufferStream* stream = CheckStreamNoError(L, 1); |
| 822 | if( stream ) |
| 823 | { |
| 824 | // decrease ref to buffer |
| 825 | dmScript::Unref(L, LUA_REGISTRYINDEX, stream->m_BufferRef); |
| 826 | } |
| 827 | return 0; |
| 828 | } |
| 829 | |
| 830 | static int Stream_tostring(lua_State* L) |
| 831 | { |
nothing calls this directly
no test coverage detected