Mercurial > repos > tabletprog
changeset 316:df4b67d8d2bc
Minor improvement to error message about invalid c type expressions
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 19 Mar 2015 22:39:18 -0700 |
parents | f987bb2a1911 |
children | 6dfbf5691a7f |
files | cbackend.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cbackend.js Sat Mar 14 12:10:51 2015 -0700 +++ b/cbackend.js Thu Mar 19 22:39:18 2015 -0700 @@ -317,7 +317,7 @@ return [rettype.toCTypeName() + '(*', ')(' + argtypes + ')']; break; default: - throw new Error('invalid use of funcall expression where a C type name is expected'); + throw new Error('invalid use of funcall expression where a C type name is expected: ' + this.name); } }; funcall.prototype.toCLines = function(vars, needsreturn) {