| 1 | // Lean compiler output |
| 2 | // Module: Lean.Server |
| 3 | // Imports: Init Lean.Server.Watchdog Lean.Server.FileWorker Lean.Server.Rpc Lean.Server.CodeActions |
| 4 | #include <lean/lean.h> |
| 5 | #if defined(__clang__) |
| 6 | #pragma clang diagnostic ignored "-Wunused-parameter" |
| 7 | #pragma clang diagnostic ignored "-Wunused-label" |
| 8 | #elif defined(__GNUC__) && !defined(__CLANG__) |
| 9 | #pragma GCC diagnostic ignored "-Wunused-parameter" |
| 10 | #pragma GCC diagnostic ignored "-Wunused-label" |
| 11 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" |
| 12 | #endif |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | lean_object* initialize_Init(uint8_t builtin, lean_object*); |
| 17 | lean_object* initialize_Lean_Server_Watchdog(uint8_t builtin, lean_object*); |
| 18 | lean_object* initialize_Lean_Server_FileWorker(uint8_t builtin, lean_object*); |
| 19 | lean_object* initialize_Lean_Server_Rpc(uint8_t builtin, lean_object*); |
| 20 | lean_object* initialize_Lean_Server_CodeActions(uint8_t builtin, lean_object*); |
| 21 | static bool _G_initialized = false; |
| 22 | LEAN_EXPORT lean_object* initialize_Lean_Server(uint8_t builtin, lean_object* w) { |
| 23 | lean_object * res; |
| 24 | if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); |
| 25 | _G_initialized = true; |
| 26 | res = initialize_Init(builtin, lean_io_mk_world()); |
| 27 | if (lean_io_result_is_error(res)) return res; |
| 28 | lean_dec_ref(res); |
| 29 | res = initialize_Lean_Server_Watchdog(builtin, lean_io_mk_world()); |
| 30 | if (lean_io_result_is_error(res)) return res; |
| 31 | lean_dec_ref(res); |
| 32 | res = initialize_Lean_Server_FileWorker(builtin, lean_io_mk_world()); |
| 33 | if (lean_io_result_is_error(res)) return res; |
| 34 | lean_dec_ref(res); |
| 35 | res = initialize_Lean_Server_Rpc(builtin, lean_io_mk_world()); |
| 36 | if (lean_io_result_is_error(res)) return res; |
| 37 | lean_dec_ref(res); |
| 38 | res = initialize_Lean_Server_CodeActions(builtin, lean_io_mk_world()); |
| 39 | if (lean_io_result_is_error(res)) return res; |
| 40 | lean_dec_ref(res); |
| 41 | return lean_io_result_mk_ok(lean_box(0)); |
| 42 | } |
| 43 | #ifdef __cplusplus |
| 44 | } |
| 45 | #endif |
| 46 | |