[proxy](5/n) use c headers instead of c++ headers (#720)

This commit is contained in:
Schrodinger ZHU Yifan
2025-01-09 17:45:24 +08:00
committed by GitHub
parent 6a3c5750bd
commit e874617d8e
21 changed files with 53 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
#include <functional>
#include <limits.h>
#include <stdio.h>
#include <test/helpers.h>
#include <test/setup.h>
@@ -288,7 +289,7 @@ namespace
{
START_TEST("allocm out-of-memory behaviour");
void* ptr = nullptr;
int ret = Allocm(&ptr, nullptr, std::numeric_limits<size_t>::max() / 2, 0);
int ret = Allocm(&ptr, nullptr, SIZE_MAX / 2, 0);
EXPECT(
(ptr == nullptr) && (ret == OUR_ALLOCM_ERR_OOM),
"Expected massive allocation to fail with out of memory ({}), received "