mirror of
https://github.com/zeldaret/tp
synced 2026-06-17 15:17:13 -04:00
JAudio2 debug (#2996)
This commit is contained in:
@@ -245,9 +245,9 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
T* operator*() const { return this->getObject(); }
|
||||
T* operator*() const { return mTree->getObject(); }
|
||||
|
||||
T* operator->() const { return this->getObject(); }
|
||||
T* operator->() const { return mTree->getObject(); }
|
||||
|
||||
private:
|
||||
JSUTree<T>* mTree;
|
||||
|
||||
@@ -10,11 +10,7 @@
|
||||
*/
|
||||
template <typename T>
|
||||
T* JSUConvertOffsetToPtr(const void* ptr, uintptr_t offset) {
|
||||
if (offset == 0) {
|
||||
return NULL;
|
||||
} else {
|
||||
return (T*)((intptr_t)ptr + (intptr_t)offset);
|
||||
}
|
||||
return offset == 0 ? NULL : (T*)((intptr_t)ptr + (intptr_t)offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user