mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(include): add some gx device headers
This commit is contained in:
parent
172cf3792d
commit
e7bb9a818a
14 changed files with 805 additions and 13 deletions
|
|
@ -14,17 +14,18 @@ struct TSLink_##T { \
|
|||
T* m_next; \
|
||||
};
|
||||
|
||||
// TSList<T>
|
||||
// TSLinkedNode<T>
|
||||
#define STORM_TS_LINKED_NODE(T) typedef struct TSLinkedNode_##T TSLinkedNode_##T; \
|
||||
#define STORM_TS_LIST(T) \
|
||||
STORM_TS_LINK(T) \
|
||||
typedef struct TSList_##T TSList_##T##; \
|
||||
typedef struct TSLinkedNode_##T TSLinkedNode_##T; \
|
||||
struct TSList_##T { \
|
||||
ptrdiff_t m_linkoffset; \
|
||||
TSLink_##T m_terminator; \
|
||||
}; \
|
||||
struct TSLinkedNode_##T { \
|
||||
TSLink_##T m_link; \
|
||||
};
|
||||
|
||||
// TSList<T>
|
||||
#define STORM_TS_LIST(T) typedef struct TSList_##T TSList_##T##; \
|
||||
struct TSList_##T { \
|
||||
ptrdiff_t m_linkoffset; \
|
||||
TSLink_##T m_terminator; \
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue