| 352 | } |
| 353 | |
| 354 | int Script::CollectionToString(lua_State* pState) { |
| 355 | // 1 - table |
| 356 | lua_getfield(pState, 1, "__tostring"); |
| 357 | if (!lua_isstring(pState, -1)) { |
| 358 | lua_pop(pState, 1); |
| 359 | std::string buffer("Collection_"); |
| 360 | lua_pushstring(pState,String::Append(buffer, lua_topointer(pState, 1)).c_str()); |
| 361 | } |
| 362 | return 1; |
| 363 | } |
| 364 | |
| 365 | |
| 366 | int Script::Next(lua_State* pState) { |
nothing calls this directly
no outgoing calls
no test coverage detected