Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- int a(void) {
- return 42;
- }
- int GetFunctionCount(void) {
- return 1;
- }
- int GetFunctionInfo(int index, void **address, char **def) {
- switch (index) {
- case 0:
- *address = (void *)&a;
- strcpy(*def, "function a(): integer;");
- return index;
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment