Update Files
This commit is contained in:
21
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/NekoInit.hx
Normal file
21
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/NekoInit.hx
Normal file
@ -0,0 +1,21 @@
|
||||
package hxcpp;
|
||||
|
||||
class NekoInit
|
||||
{
|
||||
public static function nekoInit(inModuleName:String) : Bool
|
||||
{
|
||||
var init = neko.Lib.load(inModuleName, "neko_init", 5);
|
||||
|
||||
if (init != null)
|
||||
{
|
||||
init( function(s) return new String(s),
|
||||
function(len:Int) { var r = []; if (len > 0) r[len - 1] = null; return r; },
|
||||
null,
|
||||
true,
|
||||
false);
|
||||
return true;
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user