summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/samples/multi-module/wasm-apps/mB.c
blob: a912d1d77d5d6c6875ff9a4b95fe5280a8200d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
__attribute__((import_module("mA")))
__attribute__((import_name("A1"))) extern int
A1();

__attribute__((export_name("B1"))) int
B1()
{
    return 21;
}

__attribute__((export_name("B2"))) int
B2()
{
    return A1();
}

int
B3()
{
    return 23;
}

/* mA is a  reactor. it doesn't need a main() */