summaryrefslogtreecommitdiff
path: root/include/JSystem/JSupport/JSupport.h
blob: e98dee1f98719725983058f393d0473a036d741e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef JSUPPORT_H
#define JSUPPORT_H

template <typename T>
T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) {
    if (offset == NULL) {
        return NULL;
    } else {
        return (T*)((s32)ptr + (s32)offset);
    }
}

#endif