| 103 | // Expansion is run very infrequently, so it is moved to another (probably non-inline) function. |
| 104 | template<typename T> |
| 105 | RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) { |
| 106 | // Expand the stack if needed |
| 107 | if (stackTop_ + sizeof(T) * count >= stackEnd_) |
| 108 | Expand<T>(count); |
| 109 | |
| 110 | T* ret = reinterpret_cast<T*>(stackTop_); |
| 111 | stackTop_ += sizeof(T) * count; |
| 112 | return ret; |
| 113 | } |
| 114 | |
| 115 | template<typename T> |
| 116 | T* Pop(size_t count) { |
no outgoing calls
no test coverage detected