Adds explicit destructor for AngelscriptScript.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8290bf546a
commit
d8e166e49a
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#include "../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
|
#include "../../src/ScriptResolving/AngelScript/AngelScriptResolver.hpp"
|
||||||
#include "../Core.hpp"
|
#include "../Core.hpp"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#include "../../src/ScriptResolving/AngelScript/AngelScriptScript.hpp"
|
||||||
|
#include "../Core.hpp"
|
||||||
|
|
||||||
|
export uint8_t PkmnLib_AngelscriptScript_Destruct(AngelScriptScript* p) { Try(delete p;) }
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue