blob: 503e40906758e55f54a5dcfc534a75ecea14724e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//
// Generated by dtk
// Translation Unit: JKRDisposer.cpp
//
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JKernel/JKRHeap.h"
/* 802B3C30-802B3C98 .text __ct__11JKRDisposerFv */
JKRDisposer::JKRDisposer() : mLink(this) {
mHeap = JKRHeap::findFromRoot(this);
if (mHeap) {
mHeap->appendDisposer(this);
}
}
/* 802B3C98-802B3D1C .text __dt__11JKRDisposerFv */
JKRDisposer::~JKRDisposer() {
JKRHeap* heap = mHeap;
if (heap) {
heap->removeDisposer(this);
}
}
|