Skip to content

Instantly share code, notes, and snippets.

{
"directory": "/Users/Matej/Projects/Airflow/out_debug",
"command": "clang++ -MMD -MF obj/code/libs/airflow_common/airflow_common/prefix.h-cc.gch.d -DAIRFLOW_COMMON_BUILDING -DCR_XCODE_VERSION=1141 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DDEBUG -D_DEBUG -DUSING_UV_SHARED -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING -Igen/code/libs/airflow_common -I../code -I../code/libs -I../code/modules -I/opt/mp-dep/x64-debug/include -I/opt/mp-dep/x64-debug/include/glib-2.0 -I/opt/mp-dep/x64-debug/lib/glib-2.0/include -I/opt/mp-dep/x64-debug/include/gstreamer-1.0 -I/opt/mp-dep/x64-debug/lib/gstreamer-1.0/include -I/opt/mp-dep/x64-debug/include/libxml2 -I../build_ex/config -I../code/contrib/libuv/include -fno-strict-aliasing -fdiagnostics-color -arch x86_64 -fstack-protector-strong -O0 -fno-omit-frame-pointer -gdwarf-2 -fno-standalone-debug -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mm
#if defined(FN_PREFIX_H)
#error You should not include the precompiled header directly, it should be force-included using compiler flags.
#endif
#define FN_PREFIX_H
#if defined(__cplusplus)
#include <algorithm>
#include <array>
#include <atomic>
<html><head></head><body style="
color: white;
font-size: 450%;
">
<table>
<tbody><tr>
<th>Chinese</th>
<td lang="zh">判</td>
<td lang="zh">与</td>
@knopp
knopp / window.cc
Last active March 1, 2025 17:40
Window FFI
extern "C" {
#define EXPORT __declspec(dllexport)
EXPORT void* flutter_get_window_handle(int64_t engine_id,
flutter::FlutterViewId view_id) {
flutter::FlutterWindowsEngine* engine =
flutter::FlutterWindowsEngine::GetEngineForId(engine_id);
flutter::FlutterWindowsView* view = engine->view(view_id);
return GetAncestor(view->GetWindowHandle(), GA_ROOT);
@knopp
knopp / CMakeLists.txt
Created March 22, 2025 12:15
Gtk3 Wayland Subsurface
cmake_minimum_required(VERSION 3.10)
project(gtk3_minimal)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
pkg_check_modules(WAYLAND REQUIRED wayland-client)
pkg_check_modules(WAYLAND_EGL REQUIRED wayland-egl)
pkg_check_modules(EPOXY REQUIRED epoxy)
pkg_check_modules(EGL REQUIRED egl)