summaryrefslogtreecommitdiff
path: root/src/Runtime/NMWException.h
blob: 49b623ed7e8c3fe7d5eb4d65fd3cc21879883859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef NMWEXCEPTION_H
#define NMWEXCEPTION_H

typedef void (dtor_func)(void *object, int free_object);
typedef struct destructor_chain dtor_chain;

struct destructor_chain {
	dtor_chain *next;
	dtor_func *destructor;
	void *object;
};

void *__register_global_object(void *object, dtor_func *destructor, dtor_chain *regmem);
void __destroy_global_chain();

#endif