mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-04-24 06:48:10 -05:00
19 lines
393 B
C
19 lines
393 B
C
#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
|