1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-11-22 08:43:22 +00:00
LO41/SharedData/SharedData.c
2018-06-06 13:50:11 +02:00

19 lines
383 B
C

//
// Created by Antoine Bartuccio on 06/06/2018.
//
#include "SharedData.h"
void _free__SharedData(THIS(SharedData)){
free(this);
}
SharedData *_get_instance_SharedData(){
static SharedData * new_shared_data = NULL;
if (new_shared_data == NULL){
new_shared_data = malloc_or_die(sizeof(SharedData));
LINK(SharedData, new_shared_data, _free_);
}
return new_shared_data;
}