From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Winamp/UnsignedAttribute.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Src/Winamp/UnsignedAttribute.cpp (limited to 'Src/Winamp/UnsignedAttribute.cpp') diff --git a/Src/Winamp/UnsignedAttribute.cpp b/Src/Winamp/UnsignedAttribute.cpp new file mode 100644 index 00000000..e5fe5726 --- /dev/null +++ b/Src/Winamp/UnsignedAttribute.cpp @@ -0,0 +1,23 @@ +#include "main.h" +#include "attributes.h" + +_unsigned::_unsigned() +{ + value = 0; +} + +_unsigned::_unsigned(uintptr_t defaultValue) +{ + value = defaultValue; +} + +uintptr_t _unsigned::operator =(uintptr_t uintValue) +{ + value = uintValue; + return value; +} + +#define CBCLASS _unsigned +START_DISPATCH; +CB(IFC_CONFIGITEM_GETUNSIGNED, GetUnsigned) +END_DISPATCH; \ No newline at end of file -- cgit