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 23 of file Lila.cpp.
24{
25 LILA_INFO(Emitter::SYSTEM,
"Initializing Lila");
27
29 LILA_ERROR(Emitter::SYSTEM,
"Failed to initialize interpreter");
30 return false;
31 }
32
33 if (mode == OperationMode::Server || mode == OperationMode::Both) {
35 LILA_ERROR(Emitter::SYSTEM,
"Failed to initialize server");
36 return false;
37 }
38 }
39
40 LILA_INFO(Emitter::SYSTEM,
"Lila initialized successfully");
41 return true;
42}
bool initialize_interpreter()
bool initialize_server(int port)
OperationMode m_current_mode
Current operation mode.
References LILA_ERROR, and LILA_INFO.
Referenced by main().