#include <stdarg.h>
#include "handle.h"
#include "lib/file/vfs/vfs.h"
Go to the source code of this file.
#define H_DEREF |
( |
|
h, |
|
|
|
type, |
|
|
|
var |
|
) |
| |
Value:\
\
const Status INVALID_HANDLE
i64 Status
Error handling system.
#define WARN_RETURN(status)
#define H_USER_DATA(h, type)
Definition at line 341 of file h_mgr.h.
#define H_TYPE_DEFINE |
( |
|
type | ) |
|
Value:\
static void type##_init(type*, va_list);\
static void type##_dtor(type*);\
static
Status type##_validate(
const type*);\
static
Status type##_to_string(
const type*,
wchar_t* buf);\
{\
(void (*)(void*, va_list))type##_init,\
(void (*)(void*))type##_dtor,\
(
Status (*)(
const void*))type##_validate,\
(
Status (*)(
const void*,
wchar_t*))type##_to_string,\
};\
static
H_Type H_##type = &V_##type
i64 Status
Error handling system.
i64 Handle
`handle' representing a reference to a resource (sound, texture, etc.)
Definition at line 307 of file h_mgr.h.
#define H_USER_DATA |
( |
|
h, |
|
|
|
type |
|
) |
| (type*)h_user_data(h, H_##type) |
Enumerator |
---|
RES_NO_CACHE |
|
RES_UNIQUE |
|
RES_DISALLOW_RELOAD |
|
Definition at line 358 of file h_mgr.h.
intptr_t h_get_refcnt |
( |
Handle |
h | ) |
|
void h_mgr_free_type |
( |
const H_Type |
type | ) |
|
const size_t H_STRING_LEN = 256 |