mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): added definitions for a handful of UI objects
This commit is contained in:
parent
ac20b7a227
commit
8ff5db67f2
39 changed files with 4484 additions and 183 deletions
|
|
@ -3,22 +3,18 @@
|
|||
|
||||
#include "system/types.h"
|
||||
|
||||
// to make an object self referential
|
||||
// forward-declare 'struct Object_type' as 'Object_type'
|
||||
// then define 'struct Object_type'
|
||||
|
||||
// TSLink<T>
|
||||
#define STORM_TS_LINK(T) typedef struct TSLink_##T TSLink_##T; \
|
||||
struct TSLink_##T { \
|
||||
TSLink_##T* m_prevlink; \
|
||||
T* m_next; \
|
||||
};
|
||||
}
|
||||
|
||||
// TSList<T>
|
||||
// TSExplicitList<T>
|
||||
// TSLinkedNode<T>
|
||||
#define STORM_TS_LIST(T) \
|
||||
STORM_TS_LINK(T) \
|
||||
STORM_TS_LINK(T); \
|
||||
typedef struct TSList_##T TSList_##T; \
|
||||
typedef struct TSList_##T TSExplicitList_##T; \
|
||||
typedef struct TSLinkedNode_##T TSLinkedNode_##T; \
|
||||
|
|
@ -28,6 +24,7 @@ struct TSList_##T { \
|
|||
}; \
|
||||
struct TSLinkedNode_##T { \
|
||||
TSLink_##T m_link; \
|
||||
};
|
||||
}; \
|
||||
typedef TSList_##T TSExplicitList_##T
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue