CorDisasm *InitDisasm(TargetArch Target) { CorDisasm *Disassembler = new CorDisasm(Target); if (Disassembler->init()) { return Disassembler; } delete Disassembler; return nullptr; }
DllIface CorDisasm *NewDisasm(enum TargetArch Target, const PrintControl *PControl) { CorDisasm *Disassembler = new CorDisasm(Target, PControl); if (Disassembler->init()) { return Disassembler; } delete Disassembler; return nullptr; }