Files
tp/libs/JSystem/JKernel/JKRDisposer.cpp
T

30 lines
664 B
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: JKRDisposer
2021-04-01 02:07:58 +02:00
//
2020-11-29 11:53:10 -05:00
2021-04-01 02:07:58 +02:00
#include "JSystem/JKernel/JKRDisposer.h"
2021-05-03 02:03:24 +02:00
#include "JSystem/JKernel/JKRHeap.h"
2021-03-28 22:49:05 +02:00
#include "dol2asm.h"
#include "dolphin/types.h"
2020-11-29 11:53:10 -05:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802D147C-802D14E4 2CBDBC 0068+00 0/0 12/12 0/0 .text __ct__11JKRDisposerFv */
2021-05-03 02:03:24 +02:00
JKRDisposer::JKRDisposer() : mLink(this) {
mHeap = JKRHeap::findFromRoot(this);
if (mHeap) {
mHeap->appendDisposer(this);
}
2020-11-29 11:53:10 -05:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 802D14E4-802D1568 2CBE24 0084+00 1/0 10/10 0/0 .text __dt__11JKRDisposerFv */
2021-05-03 02:03:24 +02:00
JKRDisposer::~JKRDisposer() {
JKRHeap* heap = mHeap;
if (heap) {
heap->removeDisposer(this);
}
2021-03-28 22:49:05 +02:00
}