View Full Version : Quick Propeller Tool request - Macros

M. K. Borri
11-12-2006, 06:42 PM
Hi, sorry for bothering but...

Could we have macros for commonly-used snippets of code that it's not worth calling as functions because of the overhead?

PRI ReadSensorVal(sensornum)
return long[@SensorData + sensornum]

could become just long[[@SensorData + sensornum] ... but be more readable for the next unlucky sod who has to look at my code.

(crappy example, but you know where I'm going)

Or, some basic ability to inline functions, that way if you need to change one you can just change it in one place? I think SYMBOL does this in pbasic?