should have void instead of nothing

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@129 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-10-01 23:50:32 +00:00
commit fd2f42d333
3 changed files with 6 additions and 4 deletions

View file

@ -252,7 +252,7 @@
<a href="#Mw_Vulkan_h__MwVulkanGetField">MwVulkanGetField</a> <a href="#Mw_Vulkan_h__MwVulkanGetField">MwVulkanGetField</a>
</dd> </dd>
<dd> <dd>
<a href="#Mw_Vulkan_h__MwVulkanSupported__">MwVulkanSupported()</a> <a href="#Mw_Vulkan_h__MwVulkanSupported">MwVulkanSupported</a>
</dd> </dd>
<dt> <dt>
<a href="#Mw_Window_h">Mw/Window.h</a> <a href="#Mw_Window_h">Mw/Window.h</a>
@ -1681,7 +1681,9 @@
</dd> </dd>
</dl> </dl>
<hr> <hr>
<pre id="Mw_Vulkan_h__MwVulkanSupported__"><code>MWDECL VkBool32 MwVulkanSupported();</code></pre> <pre id="Mw_Vulkan_h__MwVulkanSupported"><code>MWDECL VkBool32 MwVulkanSupported (
void
);</code></pre>
<dl> <dl>
<dd> <dd>
Return whether Vulkan is installed on the target platform. Return whether Vulkan is installed on the target platform.

View file

@ -120,7 +120,7 @@ MWDECL void* MwVulkanGetField(MwWidget handle, MwVulkanField field, MwErrorEnum*
/*! /*!
* %brief Return whether Vulkan is installed on the target platform. * %brief Return whether Vulkan is installed on the target platform.
*/ */
MWDECL VkBool32 MwVulkanSupported(); MWDECL VkBool32 MwVulkanSupported(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -485,7 +485,7 @@ void* MwVulkanGetField(MwWidget handle, MwVulkanField field, MwErrorEnum* out) {
} }
}; };
VkBool32 MwVulkanSupported() { VkBool32 MwVulkanSupported(void) {
if(vulkan_supported == VULKAN_SUPPORTED_UNKNOWN) { if(vulkan_supported == VULKAN_SUPPORTED_UNKNOWN) {
LIB_TYPE lib = vulkan_lib_load(); LIB_TYPE lib = vulkan_lib_load();
if(lib == NULL) { if(lib == NULL) {