| 332 | } |
| 333 | |
| 334 | int ProcessData::write(lua_State *L) |
| 335 | { |
| 336 | ProcessData *pd = checkProcess(L, 1); |
| 337 | if (!pd || lua_gettop(L) < 2 || !lua_isstring(L, 2)) return 0; |
| 338 | size_t len = 0; |
| 339 | const char *s = lua_tolstring(L, 2, &len); |
| 340 | lua_pushinteger(L, pd->p->write(s, len)); |
| 341 | return 1; |
| 342 | } |
| 343 | |
| 344 | int ProcessData::onevent(lua_State *L) |
| 345 | { |
no test coverage detected