Skip to content

Commit

Permalink
Switched from using "typedef" to using "using".
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach committed Mar 7, 2024
1 parent 2b35399 commit 744770b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions snippets/ResultValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,19 @@
struct ResultValueType
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef ResultValue<T> type;
using type = ResultValue<T>;
#else
typedef T type;
using type = T;
#endif
};

template <>
struct ResultValueType<void>
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef Result type;
using type = Result;
#else
typedef void type;
using type = void;
#endif
};

Expand Down
6 changes: 3 additions & 3 deletions snippets/includes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
# if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNX__ ) || defined( __Fuchsia__ )
# include <dlfcn.h>
# elif defined( _WIN32 ) && !defined( VULKAN_HPP_NO_WIN32_PROTOTYPES )
typedef struct HINSTANCE__ * HINSTANCE;
using HINSTANCE = struct HINSTANCE__ *;
# if defined( _WIN64 )
typedef int64_t( __stdcall * FARPROC )();
using FARPROC = int64_t(__stdcall *)();
# else
typedef int( __stdcall * FARPROC )();
using FARPROC = int(__stdcall *)();
# endif
extern "C" __declspec( dllimport ) HINSTANCE __stdcall LoadLibraryA( char const * lpLibFileName );
extern "C" __declspec( dllimport ) int __stdcall FreeLibrary( HINSTANCE hLibModule );
Expand Down
16 changes: 8 additions & 8 deletions vulkan/vulkan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
# if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNX__ ) || defined( __Fuchsia__ )
# include <dlfcn.h>
# elif defined( _WIN32 ) && !defined( VULKAN_HPP_NO_WIN32_PROTOTYPES )
typedef struct HINSTANCE__ * HINSTANCE;
using HINSTANCE = struct HINSTANCE__ *;
# if defined( _WIN64 )
typedef int64_t( __stdcall * FARPROC )();
using FARPROC = int64_t( __stdcall * )();
# else
typedef int( __stdcall * FARPROC )();
using FARPROC = int( __stdcall * )();
# endif
extern "C" __declspec( dllimport ) HINSTANCE __stdcall LoadLibraryA( char const * lpLibFileName );
extern "C" __declspec( dllimport ) int __stdcall FreeLibrary( HINSTANCE hLibModule );
Expand Down Expand Up @@ -6698,19 +6698,19 @@ namespace VULKAN_HPP_NAMESPACE
struct ResultValueType
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef ResultValue<T> type;
using type = ResultValue<T>;
#else
typedef T type;
using type = T;
#endif
};

template <>
struct ResultValueType<void>
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef Result type;
using type = Result;
#else
typedef void type;
using type = void;
#endif
};

Expand Down Expand Up @@ -16676,7 +16676,7 @@ namespace VULKAN_HPP_NAMESPACE
m_library = dlopen( "libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL );
}
# elif defined( _WIN32 )
m_library = ::LoadLibraryA( "vulkan-1.dll" );
m_library = ::LoadLibraryA( "vulkan-1.dll" );
# else
# error unsupported platform
# endif
Expand Down
16 changes: 8 additions & 8 deletions vulkan/vulkansc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
# if defined( __unix__ ) || defined( __APPLE__ ) || defined( __QNX__ ) || defined( __Fuchsia__ )
# include <dlfcn.h>
# elif defined( _WIN32 ) && !defined( VULKAN_HPP_NO_WIN32_PROTOTYPES )
typedef struct HINSTANCE__ * HINSTANCE;
using HINSTANCE = struct HINSTANCE__ *;
# if defined( _WIN64 )
typedef int64_t( __stdcall * FARPROC )();
using FARPROC = int64_t( __stdcall * )();
# else
typedef int( __stdcall * FARPROC )();
using FARPROC = int( __stdcall * )();
# endif
extern "C" __declspec( dllimport ) HINSTANCE __stdcall LoadLibraryA( char const * lpLibFileName );
extern "C" __declspec( dllimport ) int __stdcall FreeLibrary( HINSTANCE hLibModule );
Expand Down Expand Up @@ -3838,19 +3838,19 @@ namespace VULKAN_HPP_NAMESPACE
struct ResultValueType
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef ResultValue<T> type;
using type = ResultValue<T>;
#else
typedef T type;
using type = T;
#endif
};

template <>
struct ResultValueType<void>
{
#ifdef VULKAN_HPP_NO_EXCEPTIONS
typedef Result type;
using type = Result;
#else
typedef void type;
using type = void;
#endif
};

Expand Down Expand Up @@ -6950,7 +6950,7 @@ namespace VULKAN_HPP_NAMESPACE
m_library = dlopen( "libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL );
}
# elif defined( _WIN32 )
m_library = ::LoadLibraryA( "vulkan-1.dll" );
m_library = ::LoadLibraryA( "vulkan-1.dll" );
# else
# error unsupported platform
# endif
Expand Down

0 comments on commit 744770b

Please sign in to comment.