-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I guess I consider myself ready for a release
Have a template library for fun
- Loading branch information
Showing
3 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// This is the template for everything a library needs | ||
#ifndef AASM_EXALIB | ||
#define AASM_EXALIB 3 | ||
#include <stdio.h> | ||
#include "aasm_global.h" | ||
|
||
//############################################### <example globals> | ||
//############################################### </example globals> | ||
//############################################### <example internal functions> | ||
//############################################### </example internal functions> | ||
//############################################### <example surroundings> | ||
int init_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib initted\n"); | ||
return 0; | ||
} | ||
|
||
int update_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib updated\n"); | ||
return 0; | ||
} | ||
|
||
int free_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib freed\n"); | ||
return 0; | ||
} | ||
|
||
int instructhandler_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib instructed\n"); | ||
return 0; | ||
} | ||
|
||
int argumenthandler_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib argumented\n"); | ||
return 0; | ||
} | ||
|
||
int executehandler_example(GLOBAL* mainptrs){ | ||
|
||
if(mainptrs->debug == 'v') printf("exalib executed\n"); | ||
return 0; | ||
} | ||
|
||
int libFuncPtrs_AASM_EXALIB(){ | ||
initfuncs[AASM_EXALIB] = &init_example; | ||
instructhandlers[AASM_EXALIB] = &instructhandler_example; | ||
argumenthandlers[AASM_EXALIB] = &argumenthandler_example; | ||
executehandlers[AASM_EXALIB] = &executehandler_example; | ||
updatefuncs[AASM_EXALIB] = &update_example; | ||
freefuncs[AASM_EXALIB] = &free_example; | ||
|
||
return 0; | ||
} | ||
//############################################### </example surroundings> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters