PageRenderTime 343ms CodeModel.GetById 181ms app.highlight 2ms RepoModel.GetById 159ms app.codeStats 0ms

/libs/headers/gc/gc_amiga_redirects.h

http://github.com/nddrylliog/ooc
C++ Header | 30 lines | 25 code | 5 blank | 0 comment | 2 complexity | 4c84bb6de90f76072b336b30266759d3 MD5 | raw file
 1#ifndef GC_AMIGA_REDIRECTS_H
 2
 3# define GC_AMIGA_REDIRECTS_H
 4
 5# if ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
 6    extern void *GC_amiga_realloc(void *old_object,size_t new_size_in_bytes);
 7#   define GC_realloc(a,b) GC_amiga_realloc(a,b)
 8    extern void GC_amiga_set_toany(void (*func)(void));
 9    extern int GC_amiga_free_space_divisor_inc;
10    extern void *(*GC_amiga_allocwrapper_do) \
11	(size_t size,void *(*AllocFunction)(size_t size2));
12#   define GC_malloc(a) \
13	(*GC_amiga_allocwrapper_do)(a,GC_malloc)
14#   define GC_malloc_atomic(a) \
15	(*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic)
16#   define GC_malloc_uncollectable(a) \
17	(*GC_amiga_allocwrapper_do)(a,GC_malloc_uncollectable)
18#   define GC_malloc_stubborn(a) \
19	(*GC_amiga_allocwrapper_do)(a,GC_malloc_stubborn)
20#   define GC_malloc_atomic_uncollectable(a) \
21	(*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic_uncollectable)
22#   define GC_malloc_ignore_off_page(a) \
23	(*GC_amiga_allocwrapper_do)(a,GC_malloc_ignore_off_page)
24#   define GC_malloc_atomic_ignore_off_page(a) \
25	(*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic_ignore_off_page)
26# endif /* _AMIGA && !GC_AMIGA_MAKINGLIB */
27
28#endif /* GC_AMIGA_REDIRECTS_H */
29
30