mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-03 16:52:14 -04:00
9ff000b74c
* JKRDisposer * JKRHeap
24 lines
523 B
C++
24 lines
523 B
C++
//
|
|
// Generated by dtk
|
|
// Translation Unit: JKRDisposer.cpp
|
|
//
|
|
|
|
#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);
|
|
}
|
|
}
|