Core: Modernize C headers with C++ equivalents

This commit is contained in:
Thaddeus Crews 2025-04-28 16:05:13 -05:00
parent a8ece29adc
commit 01fc9aee6c
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
101 changed files with 126 additions and 168 deletions

View file

@ -43,8 +43,6 @@
#include "core/variant/variant.h"
#include "core/version.h"
#include <string.h>
class CallableCustomExtension : public CallableCustom {
void *userdata;
void *token;

View file

@ -34,15 +34,16 @@
* Together with the JSON file, you should be able to generate any binder.
*/
#ifndef __cplusplus
#include <stddef.h>
#include <stdint.h>
#ifndef __cplusplus
typedef uint32_t char32_t;
typedef uint16_t char16_t;
#endif
#else
#include <cstddef>
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif