blob: 1d8ad07cb5e8e9d2a721c80a01c832a5c5c2751a (
plain) (
blame)
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
|
#include "main.h"
#include "attributes.h"
_float::_float()
{
value = 0;
}
_float::_float(float defaultValue)
{
value = defaultValue;
}
intptr_t _float::operator =(intptr_t uintValue)
{
value = static_cast<float>(uintValue);
return static_cast<intptr_t>(value);
}
float _float::operator =(float uintValue)
{
value = uintValue;
return value;
}
#define CBCLASS _float
START_DISPATCH;
CB(IFC_CONFIGITEM_GETINT, GetInt)
CB(IFC_CONFIGITEM_GETFLOAT, GetFloat)
END_DISPATCH;
|