Adds explicit destructor for AngelscriptScript.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-08-04 18:33:27 +02:00
parent 8290bf546a
commit d8e166e49a
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#include "../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp" #include "../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
#include "../Core.hpp" #include "../Core.hpp"

View File

@ -0,0 +1,4 @@
#include "../../src/ScriptResolving/AngelScript/AngelScriptScript.hpp"
#include "../Core.hpp"
export uint8_t PkmnLib_AngelscriptScript_Destruct(AngelScriptScript* p) { Try(delete p;) }

View File

@ -4,7 +4,7 @@
#include <cstring> #include <cstring>
#include <exception> #include <exception>
#include <string> #include <string>
#define export extern "C" #define export extern "C" [[maybe_unused]]
#define PkmnLibException 4 #define PkmnLibException 4