|Next:||What embedding looks like from Factor|
void init_factor_from_args( F_CHAR *image, int argc, F_CHAR **argv, bool embedded )
If image is NULL, Factor will load an image file whose name is obtained by suffixing the executable name with .image.
The argc and argv parameters are interpreted just like normal command line arguments when running Factor stand-alone; see Command line arguments.
The embedded flag ensures that this function returns as soon as Factor has been initialized. Otherwise, Factor will start up normally.
char *factor_eval_string(char *string)
Evaluates a piece of code in the embedded Factor instance by passing the string to eval>string and returning the result. The result must be explicitly freed by a call to factor_eval_free.
void factor_eval_free(char *result)
Frees a string returned by factor_eval_string().
Gives all Factor threads a chance to run.
void factor_sleep(long us)
Gives all Factor threads a chance to run for us microseconds.