Skip to content

Instantly share code, notes, and snippets.

darkuranium / CMakeLists.txt
Last active November 25, 2022 15:48
MCVE for FLECS problem of EcsWith not working properly when used with singletons
View CMakeLists.txt
cmake_minimum_required(VERSION 3.2)
project(FlecsMCVE LANGUAGES C)
# NOTE: A clone of the FLECS repository ( is expected to exist in `flecs/`
add_executable(mcve mcve.c)
target_link_libraries(mcve flecs_static)
View nanovg_sokol.h
#ifdef __cplusplus
extern "C" {
struct sg_image;
// Create flags
darkuranium / ProblemMCVE.cpp
Last active May 9, 2017 16:12
Problem MCVE for Urho3D instancing issue
View ProblemMCVE.cpp
// Enable this to work around the problem.
#ifdef _MSC_VER
#pragma warning( disable : 4005 ) // macro redefinition for URHO3D_STATIC_DEFINE and URHO3D_SSE in <Urho3D/Urho3D.h>
#include <Urho3D/Urho3D.h>
#include <Urho3D/Core/CoreEvents.h>
#include <Urho3D/Engine/Application.h>
#include <Urho3D/Input/Input.h>
darkuranium / winerror.h
Created January 21, 2015 22:40
Patches for MinGW-W64 project
View winerror.h
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
#ifndef _WINERROR_
#define _WINERROR_
#define __IN__WINERROR_ 1