github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/runtime/gocontpool_nocontpool.go (about)

     1  //go:build nocontpool
     2  // +build nocontpool
     3  
     4  // This tag disables the continuation pool
     5  
     6  package runtime
     7  
     8  // Dummy pool.
     9  type goContPool struct{}
    10  
    11  // Same as new(GoCont).
    12  func (p goContPool) get() *GoCont {
    13  	return new(GoCont)
    14  }
    15  
    16  // Does nothing.
    17  func (p goContPool) release(cont *GoCont) {
    18  }