| 542 | std::string names[int(SRTS_NONEXIST)-1+1]; |
| 543 | |
| 544 | AutoMap() |
| 545 | { |
| 546 | #define SINI(statename) names[SRTS_##statename-1] = #statename |
| 547 | SINI(INIT); |
| 548 | SINI(OPENED); |
| 549 | SINI(LISTENING); |
| 550 | SINI(CONNECTING); |
| 551 | SINI(CONNECTED); |
| 552 | SINI(BROKEN); |
| 553 | SINI(CLOSING); |
| 554 | SINI(CLOSED); |
| 555 | SINI(NONEXIST); |
| 556 | #undef SINI |
| 557 | } |
| 558 | } names; |
| 559 | |
| 560 | return names.names[int(s)-1]; |
nothing calls this directly
no outgoing calls
no test coverage detected