Hello, I am a first time user of Nim and was confused about this procedure I've seen thrown around quite a bit with no real explanation of what exactly it is, what it does, if it is necessary, added automatically, etc.. The docs mention it's necessary for iOS and Android executables, but I've also seen it being used (sometimes) for DLLs. I noticed that it is imported from C, and after doing some digging I think this it it (?)
N_LIB_EXPORT N_CDECL(void, NimMain)(void) {
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
initStackBottomWith((void *)&inner);
(*inner)();
}
Though this doesn't really help. Is this procedure related to, in any way, the --nomain tag you can pass to the transpiler?? Any info at all would be helpful, thanks