Mercurial > repos > tabletprog
comparison cbackend.js @ 285:bb1539decd62
Fix const warning in sdl module
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Jul 2014 08:35:30 -0700 |
parents | 361a449a7235 |
children | ddf38b66b2e2 |
comparison
equal
deleted
inserted
replaced
284:99c18127da04 | 285:bb1539decd62 |
---|---|
273 return callpart + ', ' + args.length + args.join('') + ')'; | 273 return callpart + ', ' + args.length + args.join('') + ')'; |
274 }; | 274 }; |
275 funcall.prototype.toCTypeName = function() { | 275 funcall.prototype.toCTypeName = function() { |
276 switch(this.name) | 276 switch(this.name) |
277 { | 277 { |
278 case 'const:': | |
279 case 'const': | |
280 var receiver = this.receiver ? this.receiver : this.args[0]; | |
281 return 'const ' + receiver.toCTypeName(); | |
282 break; | |
278 case 'ptr:': | 283 case 'ptr:': |
279 case 'ptr': | 284 case 'ptr': |
280 var receiver = this.receiver ? this.receiver : this.args[0]; | 285 var receiver = this.receiver ? this.receiver : this.args[0]; |
281 return receiver.toCTypeName() + ' *'; | 286 return receiver.toCTypeName() + ' *'; |
282 break; | 287 break; |