From 6af9f457a547566e38feb125596684fbabe6e3ae Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Mon, 10 Mar 2014 15:49:41 +0100 Subject: [PATCH] Add assertions --- kernel/include/bitmap.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/include/bitmap.hpp b/kernel/include/bitmap.hpp index 2b7e1302..663d2605 100644 --- a/kernel/include/bitmap.hpp +++ b/kernel/include/bitmap.hpp @@ -8,6 +8,8 @@ #ifndef BITMAP_H #define BITMAP_H +#include "assert.hpp" + struct static_bitmap { typedef uint64_t data_type; @@ -62,8 +64,7 @@ struct static_bitmap { } } - //TODO Use an assert here - return 0; + thor_unreachable("static_bitmap has not free bit"); } size_t free_word() const { @@ -73,8 +74,7 @@ struct static_bitmap { } } - //TODO Use an assert here - return 0; + thor_unreachable("static_bitmap has no free word"); } bool is_set(size_t bit) const {