initial commit
This commit is contained in:
commit
549fbc6b74
31 changed files with 3377 additions and 0 deletions
38
devoir/include/add.h
Normal file
38
devoir/include/add.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* @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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue