Calling main from imported scripts

digitrev

Member
So, for various reasons, I want to extend SmartStasis / WHAM. I was wondering if there's a decent way to call the WHAM.main() function. Can anyone point me in the right direction?
 
Yes you can. You can call the main function from WHAM by doing, for example:
Code:
import wham.ash;

void main() {
main@wham();
}

ETA: The part after the @ is either the name of the file or the name of the script as defined by the script-predicate. Any odd characters needs to be replaced with underscores.
 
Back
Top