Under Review
over 1 year ago

Feature-request: add pre-processor with inline functions to Monkey C

Please consider adding some pre-processor to Monkey C, similar to C.

For example we could have inline functions. It would make developers life much easier: the readability of the code would improve, in many cases the binary size could be decreased  litte-bit.

#inline function myfunc(a) {return App.getApp().getProperty("LeftGoalType") == GOAL_TYPE_FOO || App.getApp().getProperty("RightGoalType") == GOAL_TYPE_FOO;}

or:

#inline myfunc(a) App.getApp().getProperty("LeftGoalType") == GOAL_TYPE_FOO || App.getApp().getProperty("RightGoalType") == GOAL_TYPE_FOO

Parents
  • So far, my biggest limitation is memory limits from code.  About 80% of my memory limit is code, whether from the data engine (that provides all my metrics), the on-device settings, or the licensing system.  Good quality experiences for customers require code - lots of it to handle various cases.  Anything to shrink that footprint and allow more logic will yield better customer experiences.

Comment
  • So far, my biggest limitation is memory limits from code.  About 80% of my memory limit is code, whether from the data engine (that provides all my metrics), the on-device settings, or the licensing system.  Good quality experiences for customers require code - lots of it to handle various cases.  Anything to shrink that footprint and allow more logic will yield better customer experiences.

Children
No Data