• Philipp Stephani's avatar
    Support threads in modules · 8160c7d9
    Philipp Stephani authored
    Rather than checking for the main thread, check for the current
    thread.
    
    * emacs-module.c (check_thread): New function.
    (MODULE_FUNCTION_BEGIN_NO_CATCH, module_get_environment)
    (module_non_local_exit_check, module_non_local_exit_clear)
    (module_non_local_exit_get, module_non_local_exit_signal)
    (module_non_local_exit_throw, module_is_not_nil, module_eq): Use it.
    8160c7d9
emacs-module.c 32.8 KB