20 lines
351 B
C++
20 lines
351 B
C++
#if !defined(DN_CPP_CPP)
|
|
#define DN_CPP_CPP
|
|
|
|
#include "dn.h"
|
|
#include "dn_cpp.h"
|
|
|
|
#if defined(__cplusplus) && DN_CPP
|
|
DN_TcScratchCpp::DN_TcScratchCpp(DN_Arena **conflicts, DN_USize count)
|
|
{
|
|
this->data = DN_TcScratchBeginArena(conflicts, count);
|
|
}
|
|
|
|
DN_TcScratchCpp::~DN_TcScratchCpp()
|
|
{
|
|
DN_TcScratchEnd(&this->data);
|
|
}
|
|
#endif
|
|
|
|
#endif // DN_CPP_CPP
|