mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-04-28 19:23:51 +00:00
feat(profile): refactor lua, bc code
This commit is contained in:
parent
e79ee08905
commit
37db5336e4
40 changed files with 3424 additions and 0 deletions
20
profile/3.3.5a-windows-386/include/bc/util/buffer.h
Normal file
20
profile/3.3.5a-windows-386/include/bc/util/buffer.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef BC_UTIL_BUFFER_H
|
||||
#define BC_UTIL_BUFFER_H
|
||||
|
||||
// Blizzard::Util::Buffer<size_t N, typename T> : Blizzard::Util::BufferData<typename T, size_t N>
|
||||
#define BC_UTIL_BUFFER(N, T) \
|
||||
typedef struct Blizzard__Util__Buffer_##N##_##T Blizzard__Util__Buffer_##N##_##T; \
|
||||
typedef struct Blizzard__Util__BufferData_##T##_##N Blizzard__Util__BufferData_##T##_##N; \
|
||||
struct Blizzard__Util__BufferData_##T##_##N { \
|
||||
uint32_t elements; \
|
||||
T* data; \
|
||||
T local[N]; \
|
||||
}; \
|
||||
struct Blizzard__Util__Buffer_##N##_##T { \
|
||||
Blizzard__Util__BufferData_##T##_##N _; \
|
||||
};
|
||||
|
||||
BC_UTIL_BUFFER(300, char);
|
||||
BC_UTIL_BUFFER(300, uint16_t);
|
||||
|
||||
#endif
|
||||
6
profile/3.3.5a-windows-386/include/bc/util/offset.h
Normal file
6
profile/3.3.5a-windows-386/include/bc/util/offset.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef BC_UTIL_OFFSET_H
|
||||
#define BC_UTIL_OFFSET_H
|
||||
|
||||
#define BC_OFFSET_INTO(C, T) typedef uintptr_t offset_in_##C##_to_##T
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue