mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
21 lines
No EOL
309 B
C
21 lines
No EOL
309 B
C
#ifndef COMMON_HANDLE_H
|
|
#define COMMON_HANDLE_H
|
|
|
|
#include "system/types.h"
|
|
|
|
#define DECLARE_HANDLE(I) \
|
|
typedef struct I##__ I##__; \
|
|
struct I##__ { \
|
|
int32_t unused; \
|
|
}; \
|
|
typedef I##__* I
|
|
|
|
DECLARE_STRUCT(CHandleObject);
|
|
|
|
struct CHandleObject {
|
|
int32_t m_refcount;
|
|
};
|
|
|
|
DECLARE_HANDLE(HOBJECT);
|
|
|
|
#endif |