This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///| | |
| fn async_run(f : async () -> Unit) -> Unit = "%async.run" | |
| ///| | |
| async fn async_suspend_with_error[T, E : Error]( | |
| f : ((T) -> Unit, (E) -> Unit) -> Unit | |
| ) -> T!E = "%async.suspend" | |
| ///| | |
| type! Load (State) -> Unit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include(CMakePrintHelpers) | |
| set(MOON_HOME "$ENV{MOON_HOME}") | |
| function(setup_moonbit_module directory) | |
| file(READ ${CMAKE_CURRENT_SOURCE_DIR}/${directory}/moon.mod.json MOON_MOD_JSON) | |
| string(JSON | |
| MOON_CURRENT_SOURCE_DIR | |
| ERROR_VARIABLE MOON_CURRENT_SOURCE_DIR_ERROR | |
| GET ${MOON_MOD_JSON} source) | |
| if(NOT MOON_CURRENT_SOURCE_DIR_ERROR STREQUAL NOTFOUND) |