Searched refs:error_for (Results 1 – 1 of 1) sorted by relevance
63 #define error_for(conditions, error) if(conditions) {return error;} macro64 #define test_for_missing_cache() error_for(!cache, LV_LRU_MISSING_CACHE)65 #define test_for_missing_key() error_for(!key, LV_LRU_MISSING_KEY)66 #define test_for_missing_value() error_for(!value || value_length == 0, LV_LRU_MISSING_VALUE)67 #define test_for_value_too_large() error_for(value_length > cache->total_memory, LV_LRU_VALUE_TO…