mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user