slight cleanup

This commit is contained in:
lepelog
2022-01-12 19:14:44 +01:00
parent acea9bb6c4
commit 0c3a00a8f2
3 changed files with 226 additions and 205 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef JSUPPORT_H
#define JSUPPORT_H
template <typename T>
T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) {
if (ptr == NULL) {
return NULL;
} else {
return (T*) ((s32)ptr + (s32)offset);
}
}
#endif