/* Copyright (C) 2013-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: Dk4Comparable.cpt */ /** @file Dk4Comparable.cpp The Dk4Comparable module. */ #line 85 "Dk4Comparable.cpt" #include "Dk4Comparable.h" int DkTools4::Comparable::compareTwoPointers(void const *l, void const *r, int cr) { int back = 0; if(NULL != l) { if(NULL != r) { DkTools4::Comparable const *pl = (DkTools4::Comparable const *)l; back = pl->compareAgainst(r, cr); } else { back = 1; } } else { if(r) back = -1; } return back; } DkTools4::Comparable::~Comparable() { } /* vim: set ai sw=4 ts=4 : */