Add nil dtor for window, and make it ready for C++

This commit is contained in:
2025-04-15 11:39:05 -04:00
parent 71fdec3129
commit 5a9bd87b0a
2 changed files with 7 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "capi.hh"
#include "uicmd.hh"
BrowserWindow::~BrowserWindow()= default;
/*
* Local Data

View File

@ -24,7 +24,7 @@
/** Contains the specific data for a single window */
typedef struct {
struct BrowserWindow {
/** Pointer to the UI object this bw belongs to */
void *ui;
@ -72,11 +72,15 @@ typedef struct {
/* Zoom factor */
float zoom;
} BrowserWindow;
~BrowserWindow();
};
#ifdef __cplusplus
extern "C" {
#else
#error Browser Window is C++ now.
#endif /* __cplusplus */