Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(js): utilize JSOO externals to convert between uint8array & bytes (…
…#85)
- Loading branch information
Showing
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Ref https://github.com/ocsigen/js_of_ocaml/issues/804#issuecomment-495826520 | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
void caml_bytes_of_array () { | ||
fprintf(stderr, "Unimplemented Javascript primitive caml_bytes_of_array!\n"); | ||
exit(1); | ||
} | ||
void caml_array_of_bytes () { | ||
fprintf(stderr, "Unimplemented Javascript primitive caml_array_of_bytes!\n"); | ||
exit(1); | ||
} | ||
void caml_array_of_string () { | ||
fprintf(stderr, "Unimplemented Javascript primitive caml_array_of_string!\n"); | ||
exit(1); | ||
} |