38 lines
732 B
C
38 lines
732 B
C
/**
|
|
* @file sub.h
|
|
* @brief Sub mnemonic: pop two elements and push their difference.
|
|
*/
|
|
|
|
#ifndef SUB_H
|
|
#define SUB_H
|
|
|
|
#include "mne.h"
|
|
|
|
/**
|
|
* @brief Forward declaration of non-derivable class Sub.
|
|
*
|
|
*/
|
|
typedef struct _sub_t sub_t;
|
|
|
|
/**
|
|
* @brief Sub vtable is identical to base Mne vtable (no new methods).
|
|
*
|
|
*/
|
|
typedef mne_vtable_t sub_vtable_t;
|
|
|
|
/**
|
|
* @brief Constructs a Sub mnemonic.
|
|
*
|
|
* @return A newly allocated Sub mnemonic.
|
|
*/
|
|
sub_t* sub_build_default(void);
|
|
|
|
/**
|
|
* @brief Destroys a Sub mnemonic (via polymorphic destructor).
|
|
*
|
|
* @param self The Sub mnemonic (can be NULL).
|
|
* @note This is a convenience wrapper; normally destructed via mne_destroy().
|
|
*/
|
|
void sub_destroy(sub_t *self);
|
|
|
|
#endif /* SUB_H */
|