call-last-kbd-macro is an interactive built-in function in `C source code'.

(call-last-kbd-macro &optional PREFIX LOOPFUNC)

Call the last keyboard macro that you defined with M-x start-kbd-macro.

A prefix argument serves as a repeat count. Zero means repeat until error.

To make a macro permanent so you can call it even after
defining others, use M-x name-last-kbd-macro.

In Lisp, optional second arg LOOPFUNC may be a function that is called prior to
each iteration of the macro. Iteration stops if LOOPFUNC returns nil.