/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
5.2.1 by Gustav Hartvigsson
Started work on the Map (SMap) data structure.
1
#ifndef __H_FUNC__
2
#define __H_FUNC__
3
4
#include <stdbool.h>
5
6
/**
7
 * This data structure holds a pointer to a function.
8
 *
9
 * A Func object must hold a pointer to a function and can hold a string,
10
 * representing its name.
11
 */
12
13
14
/**
15
 * Common types of function pointers:
16
 */
17
18
19
20
typedef void * (* SFuncPointer)(void *, ...);
21
22
typedef void (* VoidFunc)();
23
24
typedef void (* MethodFunc)(void *);
25
26
typedef bool (* CompFunc)(void*, void*);
27
28
typedef char * (* CharFunc)();
29
30
#endif