Consistent furi_assert usage across project. (#392)

This commit is contained in:
あく
2021-03-31 21:05:00 +03:00
committed by GitHub
parent 81ace53cc1
commit 6fb6e8bd3f
9 changed files with 31 additions and 31 deletions

View File

@@ -33,7 +33,7 @@ void furi_record_init() {
}
FuriRecord* furi_record_get_or_create(string_t name_str) {
assert(furi_record_data);
furi_assert(furi_record_data);
FuriRecord* record = FuriRecordDict_get(furi_record_data->records, name_str);
if(!record) {
FuriRecord new_record;
@@ -47,7 +47,7 @@ FuriRecord* furi_record_get_or_create(string_t name_str) {
}
void furi_record_create(const char* name, void* data) {
assert(furi_record_data);
furi_assert(furi_record_data);
osThreadId_t thread_id = osThreadGetId();
string_t name_str;
@@ -71,7 +71,7 @@ void furi_record_create(const char* name, void* data) {
}
bool furi_record_destroy(const char* name) {
assert(furi_record_data);
furi_assert(furi_record_data);
osThreadId_t thread_id = osThreadGetId();
string_t name_str;
@@ -92,7 +92,7 @@ bool furi_record_destroy(const char* name) {
}
void* furi_record_open(const char* name) {
assert(furi_record_data);
furi_assert(furi_record_data);
osThreadId_t thread_id = osThreadGetId();
string_t name_str;
@@ -117,7 +117,7 @@ void* furi_record_open(const char* name) {
}
void furi_record_close(const char* name) {
assert(furi_record_data);
furi_assert(furi_record_data);
osThreadId_t thread_id = osThreadGetId();
string_t name_str;