diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2021-12-29 23:58:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 23:58:26 +0100 |
commit | 14c7fae378fc40f88d3c430dea2cb726afc005b1 (patch) | |
tree | c79136104f46c88b6bef30fd92780e83ed60d647 /src/gui/guiFormSpecMenu.h | |
parent | 0ea8df4d64959a7c7ec4e55b4895d6b16dad3000 (diff) | |
download | minetest-14c7fae378fc40f88d3c430dea2cb726afc005b1.tar.gz minetest-14c7fae378fc40f88d3c430dea2cb726afc005b1.tar.bz2 minetest-14c7fae378fc40f88d3c430dea2cb726afc005b1.zip |
Formspec: Unify argument checks (#11851)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index eee84eff6..4ba9f3959 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -279,6 +279,8 @@ protected: v2s32 getElementBasePos(const std::vector<std::string> *v_pos); v2s32 getRealCoordinateBasePos(const std::vector<std::string> &v_pos); v2s32 getRealCoordinateGeometry(const std::vector<std::string> &v_geom); + bool precheckElement(const std::string &name, const std::string &element, + size_t args_min, size_t args_max, std::vector<std::string> &parts); std::unordered_map<std::string, std::vector<StyleSpec>> theme_by_type; std::unordered_map<std::string, std::vector<StyleSpec>> theme_by_name; |