| 190 | } |
| 191 | |
| 192 | void Foundation::incRefCount() |
| 193 | { |
| 194 | PX_ASSERT(mInstance != NULL); |
| 195 | |
| 196 | if(mRefCount > 0) |
| 197 | { |
| 198 | mRefCount++; |
| 199 | } |
| 200 | else |
| 201 | { |
| 202 | mInstance->error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__, |
| 203 | "Foundation: Invalid registration detected."); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | void Foundation::decRefCount() |
| 208 | { |
no test coverage detected