Blender V4.3
GHOST_Debug.hh File Reference
#include <iostream>
#include <stdio.h>

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 67 of file GHOST_Debug.hh.

Referenced by GHOST_EventManager::addConsumer(), GHOST_SystemSDL::addDirtyWindow(), GHOST_SystemX11::addDirtyWindow(), GHOST_System::beginFullScreen(), GHOST_WindowManager::beginFullScreen(), GHOST_WindowCocoa::clientToScreen(), GHOST_System::createFullScreenWindow(), GHOST_SystemCocoa::createWindow(), cursor_buffer_set_surface_impl(), GHOST_EventManager::disposeEvents(), GHOST_System::endFullScreen(), file_descriptor_is_io_ready(), GHOST_DisplayManager::findMatch(), GHOST_ModifierKeys::get(), GHOST_SystemWayland::getCapabilities(), GHOST_WindowCocoa::getClientBounds(), GHOST_DisplayManagerCocoa::getCurrentDisplaySetting(), GHOST_DisplayManager::getDisplaySetting(), GHOST_DisplayManagerSDL::getDisplaySetting(), GHOST_DisplayManagerX11::getDisplaySetting(), GHOST_SystemX11::getMilliSeconds(), GHOST_ModifierKeys::getModifierKeyCode(), GHOST_SystemWin32::getNumDisplays(), GHOST_DisplayManager::getNumDisplaySettings(), GHOST_DisplayManagerSDL::getNumDisplaySettings(), GHOST_DisplayManagerX11::getNumDisplaySettings(), GHOST_WindowCocoa::getState(), GHOST_WindowCocoa::getTitle(), GHOST_SystemPathsCocoa::getUserSpecialDir(), GHOST_SystemPathsUnix::getUserSpecialDir(), GHOST_SystemPathsWin32::getUserSpecialDir(), GHOST_WindowCocoa::getWindowBounds(), ghost_key_from_keycode(), GHOST_SystemCocoa::GHOST_SystemCocoa(), GHOST_SystemWin32::GHOST_SystemWin32(), 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_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_anim_begin(), gwl_seat_key_layout_active_state_update_mask(), 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_XrGraphicsBindingOpenGL::initFromGhostContext(), 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_EventManager::pushEvent(), 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_DisplayManagerCocoa::setCurrentDisplaySetting(), GHOST_WindowCocoa::setOrder(), GHOST_WindowCocoa::setPath(), GHOST_WindowCocoa::setState(), GHOST_WindowCocoa::setTitle(), GHOST_WindowWayland::swapBuffers(), GHOST_DirectManipulationHelper::update(), GHOST_System::updateFullScreen(), 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().