diff options
-rw-r--r-- | src/library_gl.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 1321c560..a3842510 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -16,9 +16,15 @@ var LibraryGL = { return id; }, get: function(id) { +#if ASSERTIONS + assert(id < this.counter, "Invalid id " + id + " for the hashtable " + name); +#endif return this.table[id]; }, remove: function(id) { +#if ASSERTIONS + assert(id < this.counter, "Invalid id " + id + " for the hashtable " + name); +#endif delete this.table[id]; } }; |