Skip to content

Commit

Permalink
fixup! bindings/go/blst.tgo: add SrcRoot() helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 7, 2024
1 parent a100ad2 commit 40b32f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bindings/go/blst.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ var cgo_p1Generator = *C.blst_p1_generator()
var cgo_p2Generator = *C.blst_p2_generator()
var cgo_fp12One = *C.blst_fp12_one()

func SrcRoot() string {
var SrcRoot = initSrcRoot()

func initSrcRoot() string {
path := C.GoString(C.go_blst_src_server_c())
return filepath.Dir(filepath.Dir(path))
}
Expand Down
4 changes: 3 additions & 1 deletion bindings/go/blst.tgo
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ var cgo_p1Generator = *C.blst_p1_generator()
var cgo_p2Generator = *C.blst_p2_generator()
var cgo_fp12One = *C.blst_fp12_one()

func SrcRoot() string {
var SrcRoot = initSrcRoot()

func initSrcRoot() string {
path := C.GoString(C.go_blst_src_server_c())
return filepath.Dir(filepath.Dir(path))
}
Expand Down

0 comments on commit 40b32f1

Please sign in to comment.