Skip to content

Commit

Permalink
Revert CPULib.print back to print
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Dec 12, 2023
1 parent c6b60f9 commit 26801dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/wire/cpulib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ if CLIENT or TESTING then
CPULib.Debugger.PointersByLine = {}

CPULib.Debugger.Breakpoint = {}
CPULib.print = print

-- Convars to control CPULib
local wire_cpu_upload_speed = CreateClientConVar("wire_cpu_upload_speed",1000,false,false)
Expand Down Expand Up @@ -70,7 +69,7 @@ if CLIENT or TESTING then
-- Start compiling the sourcecode
HCOMP:StartCompile(source,fileName or "source",CPULib.OnWriteByte,nil)
HCOMP.Settings.CurrentPlatform = targetPlatform or "CPU"
CPULib.print("=== HL-ZASM High Level Assembly Compiler Output ==")
print("=== HL-ZASM High Level Assembly Compiler Output ==")

-- Initialize callbacks
CPULib.SuccessCallback = successCallback
Expand Down Expand Up @@ -148,14 +147,14 @@ if CLIENT or TESTING then
for _ = 1, compile_speed do
local status,result = pcall(HCOMP.Compile,HCOMP)
if not status then
CPULib.print("==================================================")
print("==================================================")
if CPULib.ErrorCallback then CPULib.ErrorCallback(HCOMP.ErrorMessage or ("Internal error: "..result),HCOMP.ErrorPosition) end
timer.Remove("cpulib_compile")
CPULib.Compiling = false

return
elseif not result then
CPULib.print("==================================================")
print("==================================================")
CPULib.Source = CPULib.CurrentSource
CPULib.Buffer = CPULib.CurrentBuffer

Expand Down

0 comments on commit 26801dd

Please sign in to comment.