• I haven't personally done it, but something like this should work fine:

    include "jswrap_interactive.h"
    
    void doStuff() {
    }
    
    JsVar *func = jsvNewNativeFunction(doStuff, JSWAT_VOID);
    jsvUnLock(jswrap_interface_setTimeout(fu­nc, 1000/*ms*/, 0));
    jsvUnLock(func);
    
About

Avatar for Gordon @Gordon started