Created
November 22, 2022 13:22
-
-
Save Abhiroop/b5a1b061edd8e5cebbb8a078293bbc90 to your computer and use it in GitHub Desktop.
Foreign Export
This file contains hidden or 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<HsFFI.h> | |
. | |
. | |
static void my_enter(void) __attribute__((constructor)); | |
static void my_enter(void) | |
{ | |
static char *argv[] = { "libFoo.so", 0 }, **argv_ = argv; | |
static int argc = 1; | |
hs_init(&argc, &argv_); | |
} | |
. | |
. | |
. | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment