This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// __externref_t is a opaque pointer that will be translated to wasm externref. | |
__attribute__((import_name("receive_object"))) | |
__externref_t receive_object(void); | |
__attribute__((import_name("send_object"))) | |
void send_object(__externref_t); | |
int main() { | |
send_object(receive_object()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
struct position { | |
double x; | |
double y; | |
double z; | |
}; | |
int collisionDetection(struct position *positions, | |
double *radiuses, |
OlderNewer