Initializes the live coding environment.
- Parameters
-
| mode | Operation mode (Direct, Server, Both) |
| server_port | TCP port for server mode (default: 9090) |
- Returns
- True if initialization succeeded, false otherwise
Definition at line 28 of file Lila.cpp.
29{
30 LILA_INFO(Emitter::SYSTEM,
"Initializing Lila");
32
34 LILA_ERROR(Emitter::SYSTEM,
"Failed to initialize interpreter");
35 return false;
36 }
37
38 if (mode == OperationMode::Server || mode == OperationMode::Both) {
40 LILA_ERROR(Emitter::SYSTEM,
"Failed to initialize server");
41 return false;
42 }
43 }
44
45 LILA_INFO(Emitter::SYSTEM,
"Lila initialized successfully");
46 return true;
47}
bool initialize_interpreter()
bool initialize_server(int port)
OperationMode m_current_mode
Current operation mode.
References LILA_ERROR, and LILA_INFO.
Referenced by main().