16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 16:59:17 +02:00

reformat: functions can be made static

This commit is contained in:
jerrrrycho
2026-07-04 06:09:04 +02:00
parent 1d0d1c015b
commit aeb800283c
66 changed files with 199 additions and 184 deletions

View File

@@ -104,8 +104,8 @@ private:
// runs one cycle of current program. returns: error code or 0 if there's no error
auto run() -> int;
void log_error( std::string const &Error, int Line = -1 ) const;
auto guess_element_type_from_name( std::string const &Name ) const->basic_element::type_e;
auto inverse( int const Value ) const -> int {
static auto guess_element_type_from_name( std::string const &Name ) -> basic_element::type_e;
static auto inverse( int const Value ) -> int {
return Value == 0 ? 1 : 0; }
// element access
auto element( element_handle const Element ) const -> basic_element const {