mirror of
https://github.com/stellarbear/YaraSharp
synced 2026-06-08 17:36:09 +00:00
20 lines
262 B
C++
20 lines
262 B
C++
#include "Stdafx.h"
|
|
|
|
// Context
|
|
namespace YaraSharp
|
|
{
|
|
YSContext::YSContext()
|
|
{
|
|
YSException::ThrowOnError(yr_initialize());
|
|
}
|
|
|
|
YSContext::~YSContext()
|
|
{
|
|
YSException::ThrowOnError(yr_finalize());
|
|
}
|
|
|
|
void YSContext::Destroy()
|
|
{
|
|
delete this;
|
|
}
|
|
} |