Book a Demo

Author Topic: c++ code generation  (Read 3010 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
c++ code generation
« on: August 14, 2014, 06:42:07 pm »
Hi
I am looking at how EA generates code for getters and setters
In the set method the the argument name is set to newVal, whereas I want it to be a different value.
Can anyone suggest how this can be done either via the code generation templates or via an addin

Thanks
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: c++ code generation
« Reply #1 on: August 14, 2014, 07:11:46 pm »
EA sets GenOption in t_attribute to "PROPERTY=<name>;". The New (for VB) shown in the Setter/Getter dialog seems to be hard coded. Maybe the code gen allows to tweak it to be something different.

q.