(source: &str, script: Option<&Script>)
| 21 | include_bytes!(concat!(env!("OUT_DIR"), "/BOTLOADER_SNAPSHOT.bin")); |
| 22 | |
| 23 | pub fn prepend_script_source_header(source: &str, script: Option<&Script>) -> String { |
| 24 | let mut result = gen_script_source_header(script); |
| 25 | result.push_str(source); |
| 26 | result.push_str("\nscript.run();"); |
| 27 | |
| 28 | result |
| 29 | } |
| 30 | |
| 31 | fn gen_script_source_header(script: Option<&Script>) -> String { |
| 32 | match script { |
no test coverage detected