mirror of
https://github.com/zeldaret/tp
synced 2026-07-07 06:04:58 -04:00
@@ -39,6 +39,7 @@ struct JORServer;
|
||||
class JOREventListener {
|
||||
public:
|
||||
#if DEBUG
|
||||
JOREventListener() {}
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*) = 0;
|
||||
#endif
|
||||
};
|
||||
@@ -46,7 +47,7 @@ public:
|
||||
class JORReflexible : public JOREventListener {
|
||||
public:
|
||||
#if DEBUG
|
||||
JORReflexible();
|
||||
JORReflexible() {}
|
||||
static JORServer* getJORServer();
|
||||
|
||||
virtual void listenPropertyEvent(const JORPropertyEvent*);
|
||||
|
||||
@@ -119,7 +119,7 @@ inline JKRExpHeap* JKRCreateExpHeap(u32 size, JKRHeap* parent, bool errorFlag) {
|
||||
return JKRExpHeap::create(size, parent, errorFlag);
|
||||
}
|
||||
|
||||
inline void JKRDestroyExpHeap(JKRHeap* heap) {
|
||||
inline void JKRDestroyExpHeap(JKRExpHeap* heap) {
|
||||
heap->destroy();
|
||||
}
|
||||
|
||||
|
||||
@@ -108,10 +108,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
JKRHeap* getParent() {
|
||||
JSUTree<JKRHeap>* parent = mChildTree.getParent();
|
||||
return parent->getObject();
|
||||
}
|
||||
JKRHeap* getParent() { return mChildTree.getParent()->getObject(); }
|
||||
|
||||
JSUTree<JKRHeap>& getHeapTree() { return mChildTree; }
|
||||
void appendDisposer(JKRDisposer* disposer) { mDisposerList.append(&disposer->mLink); }
|
||||
@@ -119,7 +116,6 @@ public:
|
||||
void lock() const { OSLockMutex(const_cast<OSMutex*>(&mMutex)); }
|
||||
void unlock() const { OSUnlockMutex(const_cast<OSMutex*>(&mMutex)); }
|
||||
u32 getHeapSize() { return mSize; }
|
||||
u8 getCurrentGroupId() { return 0; }
|
||||
|
||||
protected:
|
||||
/* 0x00 */ // vtable
|
||||
|
||||
@@ -67,7 +67,7 @@ inline JKRSolidHeap* JKRCreateSolidHeap(u32 param_0, JKRHeap* heap, bool param_2
|
||||
return JKRSolidHeap::create(param_0, heap, param_2);
|
||||
}
|
||||
|
||||
inline void JKRDestroySolidHeap(JKRHeap* heap) {
|
||||
inline void JKRDestroySolidHeap(JKRSolidHeap* heap) {
|
||||
heap->destroy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user