Blender V5.0
GHOST_Debug.hh File Reference
#include <cstdio>
#include <iostream>

Go to the source code of this file.

Macros

#define GHOST_PRINT(x)
#define GHOST_PRINTF(x, ...)
#define GHOST_ASSERT(x, info)

Detailed Description

Macro's used in GHOST debug target.

Definition in file GHOST_Debug.hh.

Macro Definition Documentation

◆ GHOST_ASSERT

#define GHOST_ASSERT ( x,
info )
Value:
{ \
if (!(x)) { \
GHOST_PRINT("GHOST_ASSERT failed: "); \
GHOST_PRINT(info); \
GHOST_PRINT("\n"); \
} \
} \
((void)0)

Definition at line 68 of file GHOST_Debug.hh.

Referenced by GHOST_EventManager::addConsumer(), GHOST_SystemSDL::addDirtyWindow(), GHOST_SystemX11::addDirtyWindow(), GHOST_WindowCocoa::clientToScreen(), GHOST_SystemCocoa::createWindow(), cursor_buffer_set_surface_impl(), GHOST_EventManager::disposeEvents(), file_descriptor_is_io_ready(), GHOST_ModifierKeys::get(), GHOST_SystemWayland::getCapabilities(), GHOST_WindowCocoa::getClientBounds(), GHOST_SystemX11::getMilliSeconds(), GHOST_ModifierKeys::getModifierKeyCode(), GHOST_WindowCocoa::getState(), GHOST_WindowCocoa::getTitle(), GHOST_SystemPathsCocoa::getUserSpecialDir(), GHOST_SystemPathsUnix::getUserSpecialDir(), GHOST_SystemPathsWin32::getUserSpecialDir(), GHOST_WindowCocoa::getWindowBounds(), ghost_key_from_keycode(), GHOST_SystemWayland::GHOST_SystemWayland(), GHOST_URL_decode(), GHOST_WindowWayland::GHOST_WindowWayland(), ghost_wl_display_report_error(), ghost_wl_display_report_error_from_code(), ghost_wl_output_user_data(), ghost_wl_shm_format_as_size(), ghost_wl_surface_user_data(), GHOST_X11_GL_GetAttributes(), global_handle_add(), global_handle_remove(), gwl_display_event_thread_create(), gwl_display_event_thread_destroy(), gwl_display_event_thread_fn(), gwl_display_seat_index(), gwl_pointer_handle_frame_event_add(), gwl_registry_entry_remove_all(), gwl_registry_entry_update_all(), gwl_registry_handler_from_interface_slot(), gwl_registry_wl_output_remove(), gwl_registry_wl_seat_remove(), gwl_round_int2_by(), gwl_round_int_by(), gwl_seat_cursor_find_wl_shape_from_ghost(), gwl_seat_key_layout_active_state_update_mask(), gwl_seat_key_repeat_timer_add(), gwl_seat_state_pointer_from_cursor_surface(), gwl_window_cursor_shape_refresh(), gwl_window_fractional_from_viewport(), gwl_window_fractional_from_viewport_round(), gwl_window_fractional_to_viewport(), gwl_window_fractional_to_viewport_round(), gwl_window_frame_update_from_pending_no_lock(), gwl_window_viewport_unset(), gwl_xdg_decor_system_destroy(), GHOST_SystemCocoa::handleTabletEvent(), GHOST_WindowCocoa::invalidate(), keyboard_handle_key_repeat_cancel(), keyboard_handle_key_repeat_reset(), GHOST_DirectManipulationViewportEventHandler::OnContentUpdated(), GHOST_DirectManipulationHelper::onPointerHitTest(), output_handle_done(), GHOST_WindowWayland::pending_actions_handle(), pointer_handle_frame(), GHOST_EventPrinter::processEvent(), GHOST_NDOFManagerUnix::processEvents(), GHOST_EventManager::pushEvent(), GHOST_SystemWayland::pushEvent_maybe_pending(), GHOST_EventManager::removeConsumer(), GHOST_DirectManipulationViewportEventHandler::resetViewport(), GHOST_SystemWin32::s_wndProc(), GHOST_WindowCocoa::screenToClient(), seat_handle_capabilities(), GHOST_ModifierKeys::set(), GHOST_WindowCocoa::setClientHeight(), GHOST_WindowCocoa::setClientSize(), GHOST_WindowCocoa::setClientWidth(), GHOST_WindowCocoa::setOrder(), GHOST_WindowCocoa::setPath(), GHOST_WindowCocoa::setState(), GHOST_WindowCocoa::setTitle(), GHOST_WindowWayland::setWindowCustomCursorShape(), GHOST_WindowWayland::swapBufferRelease(), system_clipboard_get(), system_clipboard_get_primary_selection(), touch_seat_handle_frame(), GHOST_DirectManipulationHelper::update(), xkb_state_key_get_one_sym_without_modifiers(), and GHOST_DirectManipulationHelper::~GHOST_DirectManipulationHelper().

◆ GHOST_PRINT

◆ GHOST_PRINTF

#define GHOST_PRINTF ( x,
... )
Value:
{ \
if (false) { \
printf(x, __VA_ARGS__); \
} \
} \
((void)0)

Definition at line 43 of file GHOST_Debug.hh.

Referenced by GHOST_ActivateGPUContext(), initRawInput(), GHOST_SystemWin32::processKeyEvent(), and GHOST_SystemX11::showMessageBox().