ProgramAttribute.js 952 B

12345678910111213141516171819202122232425262728
  1. function ProgramAttribute() {
  2. Object.defineProperties(this, {
  3. 'size': { enumerable: true, configurable: true, get: ProgramAttribute.prototype.__get_size, set: ProgramAttribute.prototype.__set_size},
  4. 'name': { enumerable: true, configurable: true, get: ProgramAttribute.prototype.__get_name, set: ProgramAttribute.prototype.__set_name}
  5. })
  6. }
  7. ProgramAttribute.prototype.__get_size = function() {
  8. return Polycode.ProgramAttribute__get_size(this.__ptr)
  9. }
  10. ProgramAttribute.prototype.__set_size = function(val) {
  11. Polycode.ProgramAttribute__set_size(this.__ptr, val)
  12. }
  13. ProgramAttribute.prototype.__get_name = function() {
  14. return Polycode.ProgramAttribute__get_name(this.__ptr)
  15. }
  16. ProgramAttribute.prototype.__set_name = function(val) {
  17. Polycode.ProgramAttribute__set_name(this.__ptr, val)
  18. }
  19. Duktape.fin(ProgramAttribute.prototype, function (x) {
  20. if (x === ProgramAttribute.prototype) {
  21. return;
  22. }
  23. Polycode.ProgramAttribute__delete(x.__ptr)
  24. })