Skip to content

Commit

Permalink
Updated wasm stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ebasconp committed Jan 4, 2025
1 parent faeb2ba commit 75e9097
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion code/classeine-lib/clsn/core/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ namespace clsn::core
#else
/// @brief No-op function for debug messages when debugging is disabled.
/// @param fmtspec The format specification string (ignored).
static inline void debug(std::string_view, ...)
template <typename... Args>
static inline void debug(std::string_view, const Args&...)
{
}
#endif
Expand Down
4 changes: 2 additions & 2 deletions code/classeine-lib/clsn/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace
return value;
}

auto get_compilation_date() -> int
[[maybe_unused]] auto get_compilation_date() -> int
{
constexpr std::array<std::string_view, 12> months = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
Expand All @@ -46,7 +46,7 @@ namespace
return year * 10000 + month * 100 + day;
}

auto get_compilation_time() -> std::string
[[maybe_unused]] auto get_compilation_time() -> std::string
{
std::string_view time_as_str{__TIME__};

Expand Down
2 changes: 2 additions & 0 deletions code/classeine-lib/clsn/ui/events/action_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <clsn/ui/events/control_event.h>

#include <string>

namespace clsn::ui::events
{
class action_event : public control_event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace clsn::ui::impl::sdl2
#else
emscripten_set_main_loop_arg([](void* instance)
{
static_cast<system_backend_sdl2_impl<MainPaneType>*>(instance)->listen_events();
static_cast<ui_system_backend_sdl2_impl*>(instance)->listen_events();
}, this, 0, true);
#endif
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#endif

#include <variant>
#include <vector>

#undef main

Expand Down

0 comments on commit 75e9097

Please sign in to comment.