#define to_stmt_if(stmt) \
container_of(stmt, struct grub2_statement_if, st)
#define to_stmt_menuentry(stmt) \
container_of(stmt, struct grub2_statement_menuentry, st)
#define to_stmt_function(stmt) \
container_of(stmt, struct grub2_statement_function, st)
#define to_stmt_if(stmt) \
container_of(stmt, struct grub2_statement_if, st)
#define to_stmt_menuentry(stmt) \
container_of(stmt, struct grub2_statement_menuentry, st)
#define to_stmt_function(stmt) \
container_of(stmt, struct grub2_statement_function, st)