Cleanup: Move four blenkernel headers to C++

This commit is contained in:
Hans Goudey
2023-11-28 16:05:12 -05:00
parent 991486c37f
commit 7e3ba529ea
94 changed files with 102 additions and 130 deletions

View File

@@ -23,14 +23,14 @@
#include "../generic/py_capi_utils.h"
#include "../generic/python_compat.h"
#include "BKE_unit.h"
#include "BKE_unit.hh"
/***** C-defined systems and types *****/
static PyTypeObject BPyUnitsSystemsType;
static PyTypeObject BPyUnitsCategoriesType;
/* XXX: Maybe better as `extern` of `BKE_unit.h` ? */
/* XXX: Maybe better as `extern` of `BKE_unit.hh` ? */
static const char *bpyunits_usystem_items[] = {
"NONE",
"METRIC",
@@ -62,7 +62,7 @@ BLI_STATIC_ASSERT(
/**
* These fields are just empty placeholders, actual values get set in initializations functions.
* This allows us to avoid many handwriting, and above all,
* to keep all systems/categories definition stuff in `BKE_unit.h`.
* to keep all systems/categories definition stuff in `BKE_unit.hh`.
*/
static PyStructSequence_Field bpyunits_systems_fields[ARRAY_SIZE(bpyunits_usystem_items)];
static PyStructSequence_Field bpyunits_categories_fields[ARRAY_SIZE(bpyunits_ucategories_items)];