Skip to content

Instantly share code, notes, and snippets.

@cjbrigato
Last active October 13, 2016 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjbrigato/dd00871607b3c982f65a3ba27ccbbd87 to your computer and use it in GitHub Desktop.
Save cjbrigato/dd00871607b3c982f65a3ba27ccbbd87 to your computer and use it in GitHub Desktop.
// nestable void in -> void out
void* *(*any_to_byte)(void * a){
byte_t a_asbyte = *((uint8_t*)a);
return a_asbyte;
}
//total transtype
typedef *(*any_to_byte)(void *) transtype;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment