C_projet/devoir/include/print.h
2026-11-04 18:00:08 +01:00

38 lines
758 B
C

/**
* @file print.h
* @brief Print mnemonic: pop and display the top of stack.
*/
#ifndef PRINT_H
#define PRINT_H
#include "mne.h"
/**
* @brief Forward declaration of non-derivable class Print.
*
*/
typedef struct _print_t print_t;
/**
* @brief Print vtable is identical to base Mne vtable (no new methods).
*
*/
typedef mne_vtable_t print_vtable_t;
/**
* @brief Constructs a Print mnemonic.
*
* @return A newly allocated Print mnemonic.
*/
print_t* print_build_default(void);
/**
* @brief Destroys a Print mnemonic (via polymorphic destructor).
*
* @param self The Print mnemonic (can be NULL).
* @note This is a convenience wrapper; normally destructed via mne_destroy().
*/
void print_destroy(print_t *self);
#endif /* PRINT_H */