rt: Remove rust_call_nullary_fn
There's no need to delegate to C to call the Rust main function.
This commit is contained in:
@@ -830,13 +830,6 @@ rust_get_rt_env() {
|
||||
return task->kernel->env;
|
||||
}
|
||||
|
||||
typedef void *(*nullary_fn)();
|
||||
|
||||
extern "C" CDECL void
|
||||
rust_call_nullary_fn(nullary_fn f) {
|
||||
f();
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
pthread_key_t sched_key;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user