How do I create macros in pros?

I’m trying to create a macro that will automatically rotate a motor to a specific angle, but the code isn’t working, how do I go about creating one?

#define”, right?
Maybe post your current code?
Example:

#define waitUntil(condition)
  do {
    wait(5, msec);
  } while (!(condition))