diff options
| author | robojumper <robojumper@gmail.com> | 2025-04-24 14:56:08 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-04-24 14:56:08 +0200 |
| commit | 892059c2997f7cf2da1c21244ba8db0edbbc00da (patch) | |
| tree | d38c4177423f44ec17109d64feb40f9db5423013 /include/libms/commonlib.h | |
| parent | 7fa483e8509e80725a4a6599eaf8c9e2308cfc19 (diff) | |
Most of LibMS OK
Diffstat (limited to 'include/libms/commonlib.h')
| -rw-r--r-- | include/libms/commonlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libms/commonlib.h b/include/libms/commonlib.h index 7a0680e4..6829f278 100644 --- a/include/libms/commonlib.h +++ b/include/libms/commonlib.h @@ -48,6 +48,8 @@ void LMSi_AnalyzeMessageBinary(struct MsbInfo *info, const char *type); int LMSi_SearchBlockByName(struct MsbInfo *info, const char *name); int LMSi_GetHashTableIndexFromLabel(const char *label, int tableSize); +#define LMS_OFS_TO_PTR(ty, ptr, offset) (ty *)((char *)(ptr) + (offset)) + #ifdef __cplusplus } #endif |
