| 128 | } |
| 129 | |
| 130 | static GlobalFunctionTable* Global() { |
| 131 | // We deliberately create a new instance via raw new |
| 132 | // This is because GlobalFunctionTable can contain callbacks into |
| 133 | // the host language (Python) and the resource can become invalid |
| 134 | // indeterministic order of destruction and forking. |
| 135 | // The resources will only be recycled during program exit. |
| 136 | static GlobalFunctionTable* inst = new GlobalFunctionTable(); |
| 137 | return inst; |
| 138 | } |
| 139 | |
| 140 | private: |
| 141 | Map<String, Any> table_; |
nothing calls this directly
no outgoing calls
no test coverage detected