binana/profile/3.3.5a-windows-386/include/common/handle.h

21 lines
309 B
C
Raw Normal View History

#ifndef COMMON_HANDLE_H
#define COMMON_HANDLE_H
#include "system/types.h"
2025-03-06 16:40:31 -05:00
#define DECLARE_HANDLE(I) \
typedef struct I##__ I##__; \
struct I##__ { \
int32_t unused; \
2025-03-06 16:40:31 -05:00
}; \
typedef I##__* I
2024-09-20 00:13:32 -04:00
DECLARE_STRUCT(CHandleObject);
struct CHandleObject {
int32_t m_refcount;
};
2024-11-01 03:54:09 -04:00
DECLARE_HANDLE(HOBJECT);
#endif