/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/Func.h

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-04 20:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: gustav.hartvigsson@gmail.com-20130904205228-47tx12lnxqpayfne
Started work on the Map (SMap) data structure.
Still needs a method to determin if an object is a child to
SBaseObjectInstance.

**sigh**

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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