mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +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
24
profile/3.3.5a-windows/include/common/array.h
Normal file
24
profile/3.3.5a-windows/include/common/array.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef COMMON_ARRAY_H
|
||||
#define COMMON_ARRAY_H
|
||||
|
||||
#include "storm/array.h"
|
||||
|
||||
#define COMMON_SIMPLE_SORTED_ARRAY(T) STORM_TS_GROWABLE_ARRAY(T); \
|
||||
typedef struct CSimpleSortedArray_##T CSimpleSortedArray_##T; \
|
||||
struct CSimpleSortedArray_##T { \
|
||||
TSGrowableArray_##T m_array; \
|
||||
uint32_t m_count; \
|
||||
uint32_t m_maxcount; \
|
||||
uint32_t m_iterator; \
|
||||
};
|
||||
|
||||
#define COMMON_SIMPLE_SORTED_ARRAY_POINTER_TO(T) STORM_TS_GROWABLE_ARRAY_POINTER_TO(T); \
|
||||
typedef struct CSimpleSortedArray_pointer_to_##T CSimpleSortedArray_pointer_to_##T; \
|
||||
struct CSimpleSortedArray_pointer_to_##T { \
|
||||
TSGrowableArray_pointer_to_##T m_array; \
|
||||
uint32_t m_count; \
|
||||
uint32_t m_maxcount; \
|
||||
uint32_t m_iterator; \
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
// TInstanceId<T>
|
||||
// TSingletonInstanceId<T>
|
||||
#define COMMON_INSTANCE_ID(T) \
|
||||
STORM_TS_LIST(T) \
|
||||
STORM_TS_LIST(T); \
|
||||
typedef struct TInstanceId_##T TInstanceId_##T; \
|
||||
typedef struct TSingletonInstanceId_##T TSingletonInstanceId_##T; \
|
||||
struct TInstanceId_##T { \
|
||||
|
|
@ -20,10 +20,10 @@ struct TInstanceId_##T { \
|
|||
}; \
|
||||
struct TSingletonInstanceId_##T { \
|
||||
TInstanceId_##T b_base; \
|
||||
};
|
||||
};
|
||||
|
||||
#define COMMON_INSTANCE_ID_TABLE(T) \
|
||||
STORM_TS_LIST(T) \
|
||||
STORM_TS_LIST(T); \
|
||||
typedef struct TInstanceIdTable_##T TInstanceIdTable_##T; \
|
||||
struct TInstanceIdTable_##T { \
|
||||
SCritSect m_idCritSect; \
|
||||
|
|
|
|||
14
profile/3.3.5a-windows/include/common/rcstring.h
Normal file
14
profile/3.3.5a-windows/include/common/rcstring.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef COMMON_RC_STRING_H
|
||||
#define COMMON_RC_STRING_H
|
||||
|
||||
#include "common/refcount.h"
|
||||
|
||||
DECLARE_STRUCT(RCString);
|
||||
|
||||
// struct RCString : TRefCnt
|
||||
struct RCString {
|
||||
TRefCnt b_base;
|
||||
uint8_t* m_str;
|
||||
};
|
||||
|
||||
#endif
|
||||
11
profile/3.3.5a-windows/include/common/refcount.h
Normal file
11
profile/3.3.5a-windows/include/common/refcount.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef COMMON_REF_COUNT_H
|
||||
#define COMMON_REF_COUNT_H
|
||||
|
||||
DECLARE_STRUCT(TRefCnt);
|
||||
|
||||
struct TRefCnt {
|
||||
void* vfptr;
|
||||
uint32_t m_refcnt;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue