chagned Value_t to use unsafe.Pointer
This commit is contained in:
@ -71,10 +71,10 @@ func main() {
|
||||
goto oops
|
||||
}
|
||||
|
||||
if v == nil {
|
||||
panic("return value mut not be nil")
|
||||
if v.Kind != pcl.VALUE_STR {
|
||||
panic("return value must not be string")
|
||||
}
|
||||
fmt.Printf("RETURN VALUE = [%s]\n", *v.(*string))
|
||||
fmt.Printf("RETURN VALUE = [%s]\n", *(*string)(v.V))
|
||||
|
||||
interp.Close()
|
||||
f.Close()
|
||||
|
Reference in New Issue
Block a user