mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
21 lines
333 B
C++
21 lines
333 B
C++
|
#include "StdAfx.h"
|
||
|
#include <cstdint>
|
||
|
#include "Meter.h"
|
||
|
#include "HandleManager.h"
|
||
|
#include "Exports_Common.h"
|
||
|
|
||
|
|
||
|
|
||
|
EXPORT bool Meter_Destroy (int handle)
|
||
|
{
|
||
|
Meter* meter = (Meter*)handle_get_resource (handle);
|
||
|
|
||
|
if (meter != nullptr)
|
||
|
{
|
||
|
handle_free (handle);
|
||
|
delete meter;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|