Skip to content

Commit 39ea45f

Browse files
committed
Remove DebugImpl
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 4540500 commit 39ea45f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Lua.zig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ const userdata = @import("userdata.zig");
7171
const stack = @import("stack.zig");
7272
const alloc = @import("alloc.zig").alloc;
7373
const assert = @import("assert.zig");
74-
const DebugImpl = @import("Debug.zig");
7574

7675
/// High-level Lua wrapper and main library entry point.
7776
/// Provides an idiomatic Zig interface with automatic type conversions for the Luau scripting language.
@@ -118,7 +117,7 @@ pub inline fn openLibs(self: Self) void {
118117
/// Get debug functionality for this Lua state.
119118
/// Returns a Debug instance that provides debugging operations.
120119
pub inline fn debug(self: Self) Debug {
121-
return DebugImpl.init(@constCast(&self.state));
120+
return Debug.init(@constCast(&self.state));
122121
}
123122

124123
/// Get garbage collector control for this Lua state.
@@ -374,7 +373,7 @@ pub fn setCallbacks(self: Self, callbacks: anytype) void {
374373
fn wrapper(L: ?State.LuaState, ar: ?*State.Debug) callconv(.C) void {
375374
var lua = Self.fromState(L.?);
376375
var debug_instance = lua.debug();
377-
const debug_info = DebugImpl.Info.fromC(ar.?, .{});
376+
const debug_info = Debug.Info.fromC(ar.?, .{});
378377

379378
if (comptime is_instance) {
380379
const callbacks_struct = lua.state.callbacks();
@@ -392,7 +391,7 @@ pub fn setCallbacks(self: Self, callbacks: anytype) void {
392391
fn wrapper(L: ?State.LuaState, ar: ?*State.Debug) callconv(.C) void {
393392
var lua = Self.fromState(L.?);
394393
var debug_instance = lua.debug();
395-
const debug_info = DebugImpl.Info.fromC(ar.?, .{});
394+
const debug_info = Debug.Info.fromC(ar.?, .{});
396395

397396
if (comptime is_instance) {
398397
const callbacks_struct = lua.state.callbacks();
@@ -410,7 +409,7 @@ pub fn setCallbacks(self: Self, callbacks: anytype) void {
410409
fn wrapper(L: ?State.LuaState, ar: ?*State.Debug) callconv(.C) void {
411410
var lua = Self.fromState(L.?);
412411
var debug_instance = lua.debug();
413-
const debug_info = DebugImpl.Info.fromC(ar.?, .{});
412+
const debug_info = Debug.Info.fromC(ar.?, .{});
414413

415414
if (comptime is_instance) {
416415
const callbacks_struct = lua.state.callbacks();

0 commit comments

Comments
 (0)