1
0

IntAttribute.cpp 346 B

123456789101112131415161718192021222324
  1. #include "main.h"
  2. #include "attributes.h"
  3. _int::_int()
  4. {
  5. value = 0;
  6. }
  7. _int::_int(intptr_t defaultValue)
  8. {
  9. value = defaultValue;
  10. }
  11. intptr_t _int::operator =(intptr_t uintValue)
  12. {
  13. value = uintValue;
  14. return value;
  15. }
  16. #define CBCLASS _int
  17. START_DISPATCH;
  18. CB(IFC_CONFIGITEM_GETINT, GetInt)
  19. CB(IFC_CONFIGITEM_GETFLOAT, GetFloat)
  20. END_DISPATCH;