summaryrefslogtreecommitdiff
path: root/support/dktools/Dk4Comparable.cpp
blob: 0c600ae58f0b39ad0eefa93aad08492b7c3420f1 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
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 : */