File tree Expand file tree Collapse file tree
src/generator/c/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -464,9 +464,7 @@ extern {{ fs.context_name }} gloam_{{ fs.spec_name }}_context;
464464{% if fs .is_vulkan -%}
465465{# Vulkan: force-inlined function wrappers that dispatch through the global
466466 context struct. Unlike #define macros, these don't pollute the preprocessor
467- namespace (avoids collisions with VMA, etc.). Guarded by VK_NO_PROTOTYPES
468- so users who want raw PFN access can suppress them. #}
469- #ifndef VK_NO_PROTOTYPES
467+ namespace (avoids collisions with VMA, etc.). #}
470468{% for group in fs .cmd_pfn_groups -%}
471469{% if group .protect | length > 0 -%}
472470#if defined({{ group.protect | join(") && defined(") }})
@@ -480,7 +478,6 @@ GLOAM_FORCE_INLINE {{ cmd.return_type }} {{ cmd.name }}({{ cmd.params_str }}) {
480478#endif
481479{% endif -%}
482480{% endfor -%}
483- #endif /* VK_NO_PROTOTYPES */
484481{% else -%}
485482{# GL/EGL/GLX/WGL: macro dispatch with IntelliSense prototypes for IDE support. #}
486483#ifdef __INTELLISENSE__
Original file line number Diff line number Diff line change @@ -395,12 +395,6 @@ fn vulkan_header_uses_inline_dispatch() {
395395 !header. contains( "#define vkCreateInstance (gloam_vk_context." ) ,
396396 "should not use #define macro dispatch for Vulkan"
397397 ) ;
398-
399- // VK_NO_PROTOTYPES guard.
400- assert ! (
401- header. contains( "#ifndef VK_NO_PROTOTYPES" ) ,
402- "dispatch wrappers should be guarded by VK_NO_PROTOTYPES"
403- ) ;
404398}
405399
406400// ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments