mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Add C99 api(macro) BGFX_HANDLE_IS_VALID
This commit is contained in:
@@ -463,6 +463,8 @@ typedef struct bgfx_vertex_buffer_handle_s { uint16_t idx; } bgfx_vertex_buffer_
|
||||
typedef struct bgfx_vertex_decl_handle_s { uint16_t idx; } bgfx_vertex_decl_handle_t;
|
||||
|
||||
|
||||
#define BGFX_HANDLE_IS_VALID(h) ((h).idx != UINT16_MAX)
|
||||
|
||||
/**
|
||||
* Memory release callback.
|
||||
*
|
||||
|
||||
@@ -106,6 +106,8 @@ typedef struct bgfx_callback_vtbl_s
|
||||
|
||||
$chandles
|
||||
|
||||
#define BGFX_HANDLE_IS_VALID(h) ((h).idx != UINT16_MAX)
|
||||
|
||||
$cfuncptrs
|
||||
|
||||
$cstructs
|
||||
|
||||
Reference in New Issue
Block a user