Add pointer offset utility

This commit is contained in:
2026-01-11 23:46:12 +00:00
parent 1e536cc3ba
commit 9af9cedd51
2 changed files with 4 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ BEGIN_C_LINKAGE
)
#define wapp_is_power_of_two(NUM) ((NUM & (NUM - 1)) == 0)
#define wapp_pointer_offset(PTR, OFFSET) ((void *)((uptr)(PTR) + (OFFSET)))
#ifdef WAPP_PLATFORM_CPP
END_C_LINKAGE