i was just perusing through the manual and i was wandering what
actually do, some programming examples would help
A macro is a type of function which runs at compile time and expands one set of code into another; a function is a normal run-time function. For more info on macros, see my solution on COS.
I've never used any of these functions, but I would expect them to correspond to Create->P&R Objects type menus in the layout editor.