Culled D bindings for header-only C++ functions (#3130)

* Reformatted comments; fixed a couple of oversights

* D bindings: deterministic sub-struct order

* Added missing default to IDL

* Fixed sub-struct linkage; regenerate D binds

* Culled D bindings for header-only C++ functions

* Added missing default to bgfx.idl

* cppinline now supported by all auto-gen bindings

The pattern "func.cppinline and not func.conly" is to make sure that C bindings for `bgfx_vertex_layout_has` are still generated.
This commit is contained in:
IchorDev
2023-07-20 10:53:42 +07:00
committed by GitHub
parent faf69bbe20
commit 878767e751
8 changed files with 16 additions and 34 deletions

View File

@@ -32,7 +32,7 @@ local type_actions = {
local function cfunc(f)
return function(func)
if not func.cpponly then
if (not func.cpponly) and (not func.cppinline or func.conly) then
return f(func)
end
end