Skip to content

Commit

Permalink
Use constructor allocation instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Dec 21, 2024
1 parent 4804345 commit dab084b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source/hxlua/Types.hx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ typedef Lua_Hook = cpp.Callable<(L:cpp.RawPointer<Lua_State>, ar:cpp.RawPointer<
@:native('lua_Debug')
extern class Lua_Debug
{
@:native('lua_Debug')
static function alloc():Lua_Debug;
function new():Void;

var event:Int;
var name:cpp.ConstCharStar; /* (n) */
Expand All @@ -123,8 +122,7 @@ extern class Lua_Debug
@:native('luaL_Buffer')
extern class LuaL_Buffer
{
@:native('luaL_Buffer')
static function alloc():LuaL_Buffer;
function new():Void;

var b:cpp.ConstCharStar;
var size:cpp.SizeT;
Expand All @@ -139,8 +137,7 @@ extern class LuaL_Buffer
@:native('luaL_Reg')
extern class LuaL_Reg
{
@:native('luaL_Reg')
static function alloc():LuaL_Reg;
function new():Void;

var name:cpp.ConstCharStar;
var func:Lua_CFunction;
Expand Down

0 comments on commit dab084b

Please sign in to comment.