Bemanitools v5.26 release
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef UTIL_DEFS_H
|
||||
#define UTIL_DEFS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define STRINGIFY_(x) #x
|
||||
#define STRINGIFY(x) STRINGIFY_(x)
|
||||
|
||||
#define DLLEXPORT __declspec(dllexport)
|
||||
#define DLLIMPORT __declspec(dllimport)
|
||||
#define STDCALL __stdcall
|
||||
|
||||
#define lengthof(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
#define containerof(ptr, outer_t, member) \
|
||||
((void *) (((uint8_t *) ptr) - offsetof(outer_t, member)))
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user