blob: f7d08ac9dd82c6f6972308c2b3335423e2727a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* mir/mir_ptr.cpp
* - Destructor for MIR function pointers (cold path code)
*/
#include "mir_ptr.hpp"
#include "mir.hpp"
::MIR::FunctionPointer::~FunctionPointer()
{
if( this->ptr ) {
delete this->ptr, this->ptr = nullptr;
}
}
|