Implements most of the remaining core standard functions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-08-15 18:12:29 +02:00
parent 7523fb4294
commit 13b382def2
6 changed files with 173 additions and 25 deletions

View File

@@ -38,6 +38,8 @@ namespace Porygon {
return false;
}
for (size_t i = 0; i < parameters.size(); i++){
if (_parameterTypes[i]->GetClass() == TypeClass::All)
continue;
if (parameters[i]->operator!=(_parameterTypes[i].get())){
return false;
}

View File

@@ -22,6 +22,7 @@ namespace Porygon{
Function,
UserData,
Table,
All,
};
class ScriptType{
@@ -33,7 +34,7 @@ namespace Porygon{
virtual ~ScriptType() = default;
const TypeClass GetClass() const{
[[nodiscard]] const TypeClass GetClass() const{
return _class;
}