helpers.c 353 B

123456789101112131415161718
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <allegro5/allegro.h>
  4. #include "helpers.h"
  5. #include "callbacks.h"
  6. int take_callback(function_pointer cb, void * data) {
  7. go_take_callback_function * fb = (go_take_callback_function *) cb;
  8. int res;
  9. puts("Calling Callback");
  10. res = fb(data);
  11. puts("Callback Called");
  12. return res;
  13. }