From d0ac2adf776b9b13f00202c63041bcab1c107cbc Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Tue, 21 Jun 2022 14:58:13 -0400 Subject: [PATCH] Prefix Version function with V8go prefix --- v8go.cc | 2 +- v8go.go | 4 ++-- v8go.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v8go.cc b/v8go.cc index 2bc8061c2..bc44cf0c3 100644 --- a/v8go.cc +++ b/v8go.cc @@ -1615,7 +1615,7 @@ ValuePtr FunctionSourceMapUrl(ValuePtr ptr) { /********** v8::V8 **********/ -const char* Version() { +const char* V8goVersion() { return V8::GetVersion(); } diff --git a/v8go.go b/v8go.go index 32990558a..47364a536 100644 --- a/v8go.go +++ b/v8go.go @@ -16,8 +16,8 @@ import ( ) // Version returns the version of the V8 Engine with the -v8go suffix -func Version() string { - return C.GoString(C.Version()) +func V8goVersion() string { + return C.GoString(C.V8goVersion()) } // SetFlags sets flags for V8. For possible flags: https://github.com/v8/v8/blob/master/src/flags/flag-definitions.h diff --git a/v8go.h b/v8go.h index afe39e105..3874330f4 100644 --- a/v8go.h +++ b/v8go.h @@ -298,7 +298,7 @@ extern RtnValue FunctionCall(ValuePtr ptr, RtnValue FunctionNewInstance(ValuePtr ptr, int argc, ValuePtr args[]); ValuePtr FunctionSourceMapUrl(ValuePtr ptr); -const char* Version(); +const char* V8goVersion(); extern void SetFlags(const char* flags); #ifdef __cplusplus