Skip to content

Commit

Permalink
chore: Try fix bulid
Browse files Browse the repository at this point in the history
  • Loading branch information
Pd233 committed Aug 5, 2023
1 parent 5b079a9 commit dc0754c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

extern "C" {
#pragma region memory
void* operator_new(unsigned long long size) { return operator new(size); }
void* operator_new(std::size_t size) { return operator new(size); }
void operator_delete(void* block) { operator delete(block); }
void operator_delete_with_size(void* block, unsigned long long size) {
void operator_delete_with_size(void* block, std::size_t size) {
operator delete(block, size);
}
void* operator_new_array(unsigned long long size) {
void* operator_new_array(std::size_t size) {
return operator new[](size);
}
void operator_delete_array(void* block) { operator delete[](block); }
void operator_delete_array(void* block, unsigned long long size) {
void operator_delete_array_with_size(void* block, std::size_t size) {
operator delete[](block, size);
}
#pragma endregion
#pragma region std::string
unsigned long long std_string_get_class_size() { return sizeof(std::string); }
std::size_t std_string_get_class_size() { return sizeof(std::string); }
void std_string_placement_new_default(void* where) { new (where) std::string; }
void std_string_placement_new_c_style_str(void* where, char* str) {
new (where) std::string(str);
Expand Down

0 comments on commit dc0754c

Please sign in to comment.