mirror of
https://github.com/zeldaret/st
synced 2026-05-25 15:25:15 -04:00
make it build (and get wibo update from ph)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "global_destructor_chain.h"
|
||||
|
||||
#define CALL_DTOR(dtor, obj) (((void (*)(void *, int))(dtor))((obj), -1))
|
||||
|
||||
DestructorChain *__global_destructor_chain;
|
||||
|
||||
void *__register_global_object(void *object, void *destructor, DestructorChain *link) {
|
||||
link->next = __global_destructor_chain;
|
||||
link->destructor = destructor;
|
||||
link->object = object;
|
||||
|
||||
__global_destructor_chain = link;
|
||||
return object;
|
||||
}
|
||||
Reference in New Issue
Block a user