How do I make this function from module public?

Adam D. Ruppe destructionator at gmail.com
Wed Oct 14 01:55:13 UTC 2020


On Wednesday, 14 October 2020 at 01:46:11 UTC, Jack wrote:
>>extern(C):
>>int mul(int a, int b) { return a *  b;}

mark it `export` as well

and then be sure you are compiling in this module as well, it 
must be included on the ldc command line along with wasm.d


More information about the Digitalmars-d-learn mailing list