Removing dependecy on CRT.

This commit is contained in:
Branimir Karadžić
2017-01-19 00:21:35 -08:00
parent 223d9f7e00
commit b31f3507f2
6 changed files with 228 additions and 88 deletions

View File

@@ -28,13 +28,13 @@ int main()
for (uint32_t jj = 0; jj < numElements; ++jj)
{
tinystl::pair<TinyStlUnorderedMap::iterator, bool> ok = map.insert(tinystl::make_pair(uint64_t(jj), uint16_t(jj) ) );
assert(ok.second);
assert(ok.second); BX_UNUSED(ok);
}
for (uint32_t jj = 0; jj < numElements; ++jj)
{
bool ok = bx::mapRemove(map, uint64_t(jj) );
assert(ok);
assert(ok); BX_UNUSED(ok);
}
assert(map.size() == 0);
@@ -56,13 +56,13 @@ int main()
for (uint32_t jj = 0; jj < numElements; ++jj)
{
std::pair<StdUnorderedMap::iterator, bool> ok = map.insert(std::make_pair(uint64_t(jj), uint16_t(jj) ) );
assert(ok.second);
assert(ok.second); BX_UNUSED(ok);
}
for (uint32_t jj = 0; jj < numElements; ++jj)
{
bool ok = bx::mapRemove(map, uint64_t(jj) );
assert(ok);
assert(ok); BX_UNUSED(ok);
}
assert(map.size() == 0);
@@ -83,13 +83,13 @@ int main()
for (uint32_t jj = 0; jj < numElements; ++jj)
{
bool ok = map.insert(jj, uint16_t(jj) );
assert(ok);
assert(ok); BX_UNUSED(ok);
}
for (uint32_t jj = 0; jj < numElements; ++jj)
{
bool ok = map.removeByKey(uint64_t(jj) );
assert(ok);
assert(ok); BX_UNUSED(ok);
}
assert(map.getNumElements() == 0);