macro_rules! assert_is_ata {
    ($ata: expr $(,)?) => { ... };
    ($ata: expr, $msg: expr $(,)?) => { ... };
}
Expand description

Asserts that the given anchor_spl::token::TokenAccount is an associated token account.

Warning: this uses a lot of compute units due to the need to generate a PDA. Use this macro sparingly.