1
0
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:
2018-06-06 03:00:35 +02:00
parent 0fd63b47dd
commit 00eebf97f2
7 changed files with 74 additions and 1 deletions

View File

@ -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;
}

View File

@ -9,6 +9,9 @@
typedef struct o_CommunicationBox {
DESTRUCTOR(CommunicationBox);
} CommunicationBox;
CommunicationBox *_init_CommunicationBox();
#endif //LO41_COMMUNICATIONBOX_H