MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / CollectionToString

Method CollectionToString

MonaServer/sources/Script.cpp:354–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354int 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
366int Script::Next(lua_State* pState) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected