-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaasm_templatelib.h
60 lines (45 loc) · 1.67 KB
/
aasm_templatelib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// This is the template for everything a library needs
#ifndef AASM_TEMPLATELIB
#define AASM_TEMPLATELIB 3
#include <stdio.h>
#include "aasm_global.h"
//############################################### <template globals>
//############################################### </template globals>
//############################################### <template internal functions>
//############################################### </template internal functions>
//############################################### <template essentials>
int init_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib initted\n");
return 0;
}
int update_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib updated\n");
return 0;
}
int free_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib freed\n");
return 0;
}
int instructhandler_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib instructed\n");
return 0;
}
int argumenthandler_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib argumented\n");
return 0;
}
int executehandler_template(GLOBAL* mainptrs){
if(mainptrs->debug == 'v') printf("templatelib executed\n");
return 0;
}
int libFuncPtrs_AASM_TEMPLATELIB(){
initfuncs[AASM_TEMPLATELIB] = &init_template;
instructhandlers[AASM_TEMPLATELIB] = &instructhandler_template;
argumenthandlers[AASM_TEMPLATELIB] = &argumenthandler_template;
executehandlers[AASM_TEMPLATELIB] = &executehandler_template;
updatefuncs[AASM_TEMPLATELIB] = &update_template;
freefuncs[AASM_TEMPLATELIB] = &free_template;
return 0;
}
//############################################### </example essentials>
#endif