Refactor sprint 34 validation helpers for architecture compliance
This commit is contained in:
9
editor/src/ValidationErrorUtil.h
Normal file
9
editor/src/ValidationErrorUtil.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
inline bool failWith(std::string* error, const char* code) {
|
||||
if (!error) return false;
|
||||
*error = code;
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user