Merge pull request #1771 from cloudwu/handle

Add C99 api(macro) BGFX_HANDLE_ID_VALID
This commit is contained in:
Бранимир Караџић 2019-05-16 22:09:53 -07:00 committed by GitHub
commit 81c26e4b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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.
*

View File

@ -106,6 +106,8 @@ typedef struct bgfx_callback_vtbl_s
$chandles
#define BGFX_HANDLE_IS_VALID(h) ((h).idx != UINT16_MAX)
$cfuncptrs
$cstructs