mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-17 15:19:23 +00:00
Base du bâtiment
This commit is contained in:
@ -3,3 +3,15 @@
|
||||
//
|
||||
|
||||
#include "CommunicationBox.h"
|
||||
|
||||
void _free__CommunicationBox(THIS(CommunicationBox)){
|
||||
free(this);
|
||||
}
|
||||
|
||||
CommunicationBox *_init_CommunicationBox(){
|
||||
CommunicationBox * new_box = malloc_or_die(sizeof(CommunicationBox));
|
||||
|
||||
LINK(CommunicationBox, new_box, _free_);
|
||||
|
||||
return new_box;
|
||||
}
|
@ -9,6 +9,9 @@
|
||||
|
||||
typedef struct o_CommunicationBox {
|
||||
|
||||
DESTRUCTOR(CommunicationBox);
|
||||
} CommunicationBox;
|
||||
|
||||
CommunicationBox *_init_CommunicationBox();
|
||||
|
||||
#endif //LO41_COMMUNICATIONBOX_H
|
||||
|
Reference in New Issue
Block a user