libtock/proximity.c
static void cb(int proximity,
               __attribute__((unused)) int unused,
               __attribute__((unused)) int unused1,
               void *ud) {
  struct data *data = (struct data *)ud;
  data->proximity = proximity;
  data->fired     = true;
}
// Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads
static void cb(int proximity,
               __attribute__((unused)) int unused,
               __attribute__((unused)) int unused1,
               void *ud) {
  struct data *data = (struct data *)ud;
  data->proximity = proximity;
  data->fired     = true;
}
static void cb ( int proximity , __attribute__ ( ( unused ) ) int unused , __attribute__ ( ( unused ) ) int unused1 , void * ud ) { struct data * data = ( struct data * ) ud ; data -> proximity = proximity ; data -> fired = true ; }
Internal callback for faking synchronous reads
Internal callback for faking synchronous reads