| 59 | { |
| 60 | |
| 61 | const char* WindowKindToString(WindowKind kind) |
| 62 | { |
| 63 | switch (kind) |
| 64 | { |
| 65 | case WindowKind::TwoD: return "2d"; |
| 66 | case WindowKind::ThreeD: return "3d"; |
| 67 | } |
| 68 | // All enum values are handled above; a value outside the enum domain is UB. |
| 69 | // Trip an assert in debug to flag the contract break, keep a safe token in |
| 70 | // release so the bridge cannot crash callers. |
| 71 | assert(false && "WindowKindToString: value outside WindowKind enum domain"); |
| 72 | return "unknown"; |
| 73 | } |
| 74 | |
| 75 | const char* AnatomicalPlaneToV2String(AnatomicalPlane plane) |
| 76 | { |
no outgoing calls