mirror of
https://github.com/stellarbear/YaraSharp
synced 2026-06-08 17:36:09 +00:00
11 lines
271 B
C++
11 lines
271 B
C++
#include "Stdafx.h"
|
|
|
|
// CContext
|
|
namespace YaraSharp
|
|
{
|
|
// Constructor
|
|
CContext::CContext() { ErrorUtility::ThrowOnError(yr_initialize()); }
|
|
// Destructor
|
|
CContext::~CContext() { ErrorUtility::ThrowOnError(yr_finalize()); }
|
|
void CContext::Destroy() { delete this; }
|
|
} |