mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +00:00
The asserts replaced by FLATBUFFERS_ASSERT. (#4701)
* The asserts replaced by FLATBUFFERS_ASSERT. Several asserts have converted to static_asserts. * Regenerate header monster generate_code.sh
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
86153fd740
commit
a66f9e769b
@@ -47,12 +47,12 @@ static LoadFileFunction g_load_file_function = LoadFileRaw;
|
||||
static FileExistsFunction g_file_exists_function = FileExistsRaw;
|
||||
|
||||
bool LoadFile(const char *name, bool binary, std::string *buf) {
|
||||
assert(g_load_file_function);
|
||||
FLATBUFFERS_ASSERT(g_load_file_function);
|
||||
return g_load_file_function(name, binary, buf);
|
||||
}
|
||||
|
||||
bool FileExists(const char *name) {
|
||||
assert(g_file_exists_function);
|
||||
FLATBUFFERS_ASSERT(g_file_exists_function);
|
||||
return g_file_exists_function(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user