Update generated files for void* return value (see #3591)

This commit is contained in:
Marshall Greenblatt 2024-10-03 12:37:11 -04:00
parent 330534a2e7
commit e5bc3c9255
8 changed files with 26 additions and 28 deletions

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=e4cad5e75e1837d5d68c936e71b919e1702afad9$ // $hash=a5ca27729a570de0318a9d15416fee153afaec32$
// //
#include "libcef_dll/cpptoc/binary_value_cpptoc.h" #include "libcef_dll/cpptoc/binary_value_cpptoc.h"
@ -145,14 +145,13 @@ const void* CEF_CALLBACK
binary_value_get_raw_data(struct _cef_binary_value_t* self) { binary_value_get_raw_data(struct _cef_binary_value_t* self) {
shutdown_checker::AssertNotShutdown(); shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self); DCHECK(self);
if (!self) { if (!self) {
return NULL; return NULL;
} }
// This manual implementation can be removed once support for 'const void*'
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
const void* _retval = CefBinaryValueCppToC::Get(self)->GetRawData(); const void* _retval = CefBinaryValueCppToC::Get(self)->GetRawData();

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=d9074b7c1500d594cc88a4eedb68d9d31c5f5018$ // $hash=fd37d01fdcf8c3de25e36d428ca38781c4749586$
// //
#include "libcef_dll/cpptoc/shared_memory_region_cpptoc.h" #include "libcef_dll/cpptoc/shared_memory_region_cpptoc.h"
@ -60,14 +60,13 @@ void* CEF_CALLBACK
shared_memory_region_memory(struct _cef_shared_memory_region_t* self) { shared_memory_region_memory(struct _cef_shared_memory_region_t* self) {
shutdown_checker::AssertNotShutdown(); shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self); DCHECK(self);
if (!self) { if (!self) {
return NULL; return NULL;
} }
// This manual implementation can be removed once support for 'void*'
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
void* _retval = CefSharedMemoryRegionCppToC::Get(self)->Memory(); void* _retval = CefSharedMemoryRegionCppToC::Get(self)->Memory();

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=592d43a6597f03f91eb13ea9354ed552f581ebec$ // $hash=fb7e4b1912656da200ed1dd614a9f03e7d5f8ce7$
// //
#include "libcef_dll/cpptoc/shared_process_message_builder_cpptoc.h" #include "libcef_dll/cpptoc/shared_process_message_builder_cpptoc.h"
@ -84,15 +84,17 @@ void* CEF_CALLBACK shared_process_message_builder_memory(
struct _cef_shared_process_message_builder_t* self) { struct _cef_shared_process_message_builder_t* self) {
shutdown_checker::AssertNotShutdown(); shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self); DCHECK(self);
if (!self) { if (!self) {
return 0; return NULL;
} }
// Execute // Execute
void* _retval = CefSharedProcessMessageBuilderCppToC::Get(self)->Memory(); void* _retval = CefSharedProcessMessageBuilderCppToC::Get(self)->Memory();
// Return type: simple // Return type: simple_byaddr
return _retval; return _retval;
} }

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=befb2f29af8a0e8eabf745fad126ebad5a741c74$ // $hash=10ac43c0f16dedaf21bfa55f126f61c4d179abca$
// //
#include "libcef_dll/cpptoc/v8value_cpptoc.h" #include "libcef_dll/cpptoc/v8value_cpptoc.h"
@ -976,14 +976,13 @@ v8value_get_array_buffer_byte_length(struct _cef_v8value_t* self) {
} }
void* CEF_CALLBACK v8value_get_array_buffer_data(struct _cef_v8value_t* self) { void* CEF_CALLBACK v8value_get_array_buffer_data(struct _cef_v8value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self); DCHECK(self);
if (!self) { if (!self) {
return NULL; return NULL;
} }
// This manual implementation can be removed once support for 'void*'
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
void* _retval = CefV8ValueCppToC::Get(self)->GetArrayBufferData(); void* _retval = CefV8ValueCppToC::Get(self)->GetArrayBufferData();

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=e5fd79e6dbb20737b5c3a5b6e4bf547336c62398$ // $hash=8ff0f88b9a33d5c635a0128aef98046c68ddb3ad$
// //
#include "libcef_dll/ctocpp/binary_value_ctocpp.h" #include "libcef_dll/ctocpp/binary_value_ctocpp.h"
@ -148,8 +148,7 @@ NO_SANITIZE("cfi-icall") const void* CefBinaryValueCToCpp::GetRawData() {
return nullptr; return nullptr;
} }
// This manual implementation can be removed once support for 'const void*' // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
const void* _retval = _struct->get_raw_data(_struct); const void* _retval = _struct->get_raw_data(_struct);

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=b2e33c91a598c69f92031e0624bf96803247439c$ // $hash=2ac7389e153471dba2e636363a5fb49a5afb0d3a$
// //
#include "libcef_dll/ctocpp/shared_memory_region_ctocpp.h" #include "libcef_dll/ctocpp/shared_memory_region_ctocpp.h"
@ -57,11 +57,10 @@ NO_SANITIZE("cfi-icall") void* CefSharedMemoryRegionCToCpp::Memory() {
cef_shared_memory_region_t* _struct = GetStruct(); cef_shared_memory_region_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, memory)) { if (CEF_MEMBER_MISSING(_struct, memory)) {
return NULL; return nullptr;
} }
// This manual implementation can be removed once support for 'void*' // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
void* _retval = _struct->memory(_struct); void* _retval = _struct->memory(_struct);

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=da73d238eb11ae25ae64d3373e2357e40a01051a$ // $hash=b950950a19b7825e808132e616468bb51f8607fb$
// //
#include "libcef_dll/ctocpp/shared_process_message_builder_ctocpp.h" #include "libcef_dll/ctocpp/shared_process_message_builder_ctocpp.h"
@ -82,13 +82,15 @@ NO_SANITIZE("cfi-icall") void* CefSharedProcessMessageBuilderCToCpp::Memory() {
cef_shared_process_message_builder_t* _struct = GetStruct(); cef_shared_process_message_builder_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, memory)) { if (CEF_MEMBER_MISSING(_struct, memory)) {
return NULL; return nullptr;
} }
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute // Execute
void* _retval = _struct->memory(_struct); void* _retval = _struct->memory(_struct);
// Return type: simple // Return type: simple_byaddr
return _retval; return _retval;
} }

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory // implementations. See the translator.README.txt file in the tools directory
// for more information. // for more information.
// //
// $hash=df9571f843ed0e55e581dc6282079803e3641d2c$ // $hash=8469f8012718df705bf24d8abc2c127d68df07c2$
// //
#include "libcef_dll/ctocpp/v8value_ctocpp.h" #include "libcef_dll/ctocpp/v8value_ctocpp.h"
@ -989,8 +989,7 @@ NO_SANITIZE("cfi-icall") void* CefV8ValueCToCpp::GetArrayBufferData() {
return nullptr; return nullptr;
} }
// This manual implementation can be removed once support for 'void*' // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// is integrated into the CEF translator tool (issue #3591).
// Execute // Execute
void* _retval = _struct->get_array_buffer_data(_struct); void* _retval = _struct->get_array_buffer_data(_struct);