github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/runtime/luacontpool_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 luaContPool struct{}
    10  
    11  // Same as new(LuaCont).
    12  func (p luaContPool) get() *LuaCont {
    13  	return new(LuaCont)
    14  }
    15  
    16  // Does nothing.
    17  func (p luaContPool) release(cont *LuaCont) {
    18  }