38 lines
727 B
C
38 lines
727 B
C
|
|
/**
|
||
|
|
* @file add.h
|
||
|
|
* @brief Add mnemonic: pop two elements and push their sum.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef ADD_H
|
||
|
|
#define ADD_H
|
||
|
|
|
||
|
|
#include "mne.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Forward declaration of non-derivable class Add.
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
typedef struct _add_t add_t;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Add vtable is identical to base Mne vtable (no new methods).
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
typedef mne_vtable_t add_vtable_t;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Constructs an Add mnemonic.
|
||
|
|
*
|
||
|
|
* @return A newly allocated Add mnemonic.
|
||
|
|
*/
|
||
|
|
add_t* add_build_default(void);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Destroys an Add mnemonic (via polymorphic destructor).
|
||
|
|
*
|
||
|
|
* @param self The Add mnemonic (can be NULL).
|
||
|
|
* @note This is a convenience wrapper; normally destructed via mne_destroy().
|
||
|
|
*/
|
||
|
|
void add_destroy(add_t *self);
|
||
|
|
|
||
|
|
#endif /* ADD_H */
|