All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalan.Modules.scala Maven / Gradle / Ivy

The newest version!
package scalan

trait Modules extends Base { self: Scalan =>

  /** Whether staged modules should be registered when cake is constructed and initialized. */
  def okRegisterModules: Boolean = false

  /** Called once for each staged module during this cake initialization. */
  protected def registerModule(moduleInfo: ModuleInfo) = {
    if (okRegisterModules) {
      !!!(s"Cannot register module $moduleInfo: registerModule method is not overridden in IR cake $this. ")
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy