/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: 2015-04-07 17:58:58 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150407175858-6kx2kvbn8pa1s82c
* Added some compile options to the root CMakeLists.txt
* Cleaned up some code in baseobject.h, baseobect.c and Func.h
* Added inclution guard to GlobalNotify.h
* Now uses macros instead of functions in utils.[c,h] for the print futctions
* Fixed Vec.[h,c] - Forgot to return self and used wrong type
* added test macros.
* Rewrote the ref-count test-case to use the new test macros.
  * Also fixed a circular call in baseobject.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#ifndef __H_FUNC__
25
25
#define __H_FUNC__
26
 
 
27
 
BEGIN_DECLS
28
 
 
29
 
#include <stdbool.h>
30
 
#include "defs.h"
31
 
#include "utils.h"
32
 
#include "baseobject.h"
33
 
 
34
26
/** @file
35
27
 * Generic function pointer definitions and data stuctures to do with
36
28
 * functions.
39
31
 */
40
32
 
41
33
 
 
34
#include "defs.h"
 
35
#include "utils.h"
 
36
#include "baseobject.h"
 
37
#include <stdbool.h>
 
38
 
 
39
BEGIN_DECLS
 
40
 
42
41
/*
43
42
 * This data structure holds a pointer to a function.
44
43
 *
60
59
typedef void (* FuncPointer)(void);
61
60
 
62
61
/**
63
 
 * 
64
 
 */
65
 
typedef void (* MethodFunc)(SObject *);
66
 
 
67
 
/**
68
62
 *
69
63
 */
70
64
typedef void (* Callback)(void);
74
68
 */
75
69
typedef void (* FreeFunc)(spointer obj);
76
70
 
 
71
 
77
72
/**
78
73
 *
79
74
 */