summaryrefslogtreecommitdiffstats
path: root/src/templates.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/templates.h4
1 files changed, 3 insertions, 1 deletions
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){