Fixes for wrong C declarations
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-05-02 16:19:24 +02:00
parent 3015133076
commit 91bd7f8670
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include "Core.hpp"
std::string ExceptionHandler::_lastException = "";
export const char* PkmnLib_GetLastException() { return ExceptionHandler::GetLastException(); }
export const char* PkmnLib_C_GetLastException() { return ExceptionHandler::GetLastException(); }

View File

@ -19,6 +19,7 @@ SIMPLE_GET_FUNC(Nature, GetDecreasedStat, CreatureLib::Library::Statistic)
#undef SIMPLE_GET_FUNC
export float PkmnLib_Nature_GetStatModifier(PkmnLib::Library::Nature nature, CreatureLib::Library::Statistic stat) {
return nature.GetStatModifier(stat);
export float PkmnLib_Nature_GetStatModifier(const PkmnLib::Library::Nature* nature,
CreatureLib::Library::Statistic stat) {
return nature->GetStatModifier(stat);
}