mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-04-27 11:53:52 +00:00
21 lines
609 B
C++
21 lines
609 B
C++
#ifndef STORM_HANDLE_HPP
|
|
#define STORM_HANDLE_HPP
|
|
|
|
#define DECLARE_STORM_HANDLE(name) \
|
|
struct name##__ { \
|
|
int32_t unused; \
|
|
}; \
|
|
typedef struct name##__* name
|
|
|
|
#define DECLARE_STORM_STRICT_HANDLE(name) \
|
|
typedef struct name##__ { \
|
|
int unused; \
|
|
}* name
|
|
|
|
#define DECLARE_STORM_CHILD_HANDLE(name, super) \
|
|
struct name##__ : public super##__ { \
|
|
int32_t unused; \
|
|
}; \
|
|
typedef struct name##__* name
|
|
|
|
#endif
|