callbacks.c 375 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <allegro5/allegro.h>
  4. #include "helpers.h"
  5. #include "callbacks.h"
  6. #include "_cgo_export.h"
  7. /* This wraps the C api function that takes a callback, to take go_take_callback_callback
  8. as the callback */
  9. int go_take_callback(void * context) {
  10. return take_callback((function_pointer)go_take_callback_callback, context);
  11. }