Fix CFFIMacro for latest Haxe dev
`return null` is no longer allowed for Void-returns: HaxeFoundation/haxe#7198 This was causing issues when building a completion cache with the HL target: lime/src/lime/_internal/backend/native/NativeCFFI.hx:3435: characters 9-82 : Cannot return `null` from Void-function
This commit is contained in:
committed by
Joshua Granick
parent
769be5d9d3
commit
8738781481
@@ -79,6 +79,10 @@ class CFFIMacro {
|
||||
|
||||
expr += "return false";
|
||||
|
||||
case "Void":
|
||||
|
||||
expr += "return";
|
||||
|
||||
default:
|
||||
|
||||
expr += "return null";
|
||||
|
||||
Reference in New Issue
Block a user