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:
Jens Fischer
2018-08-02 13:25:26 +02:00
committed by Joshua Granick
parent 769be5d9d3
commit 8738781481

View File

@@ -79,6 +79,10 @@ class CFFIMacro {
expr += "return false";
case "Void":
expr += "return";
default:
expr += "return null";