From 21f88538d7204abc759b4b50274dfd1e2f577a11 Mon Sep 17 00:00:00 2001 From: Aidan Lee Date: Thu, 12 Sep 2024 20:43:30 +0100 Subject: [PATCH] Use hxcpp float --- include/hx/TelemetryTracy.h | 2 +- src/hx/TelemetryTracy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hx/TelemetryTracy.h b/include/hx/TelemetryTracy.h index 7a2fd6ef5..d96cc9db1 100644 --- a/include/hx/TelemetryTracy.h +++ b/include/hx/TelemetryTracy.h @@ -25,7 +25,7 @@ ::tracy::ScopedZone ___tracy_scoped_zone(_hx_stackframe.lineNumber, _hx_stackframe.position->fullName, strlen(_hx_stackframe.position->fullName), _hx_stackframe.position->functionName, strlen(_hx_stackframe.position->functionName), name.utf8_str(&TracyConcat(_hx_tracy_str_buffer, TracyLine), &TracyConcat(_hx_tracy_str_length, TracyLine)), TracyConcat(_hx_tracy_str_length, TracyLine)); void __hxcpp_tracy_framemark(); -void __hxcpp_tracy_plot(::String name, float val); +void __hxcpp_tracy_plot(::String name, ::Float val); void __hxcpp_tracy_plot_config(::String name, uint8_t format, bool step, bool fill, int color); void __hxcpp_tracy_message(::String msg, int color); void __hxcpp_tracy_message_app_info(::String info); diff --git a/src/hx/TelemetryTracy.cpp b/src/hx/TelemetryTracy.cpp index 0867d699b..099e2ac15 100644 --- a/src/hx/TelemetryTracy.cpp +++ b/src/hx/TelemetryTracy.cpp @@ -226,7 +226,7 @@ void __hxcpp_tracy_framemark() ::tracy::Profiler::SendFrameMark(0); } -void __hxcpp_tracy_plot(String name, float val) +void __hxcpp_tracy_plot(String name, ::Float val) { hx::strbuf buffer; ::tracy::Profiler::PlotData(name.utf8_str(&buffer), val);