From b5fba778c4a307f0a5721c9b3b0efb38be96634b Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 17 Jun 2019 10:30:02 +0200 Subject: first part of CFileLoader --- src/templates.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/templates.h') diff --git a/src/templates.h b/src/templates.h index 03e41a64..3ac0bc90 100644 --- a/src/templates.h +++ b/src/templates.h @@ -8,8 +8,10 @@ public: T store[n]; T *alloc(void){ - if(this->allocPtr >= n) + if(this->allocPtr >= n){ printf("Size of this thing:%d needs increasing\n", n); + assert(0); + } return &this->store[this->allocPtr++]; } void clear(void){ -- cgit v1.2.3