mirror of
https://gitlab.com/klmp200/LO41.git
synced 2024-11-22 08:43:22 +00:00
19 lines
383 B
C
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;
|
|
}
|