Skip to content

Instantly share code, notes, and snippets.

View solodon4's full-sized avatar

Yuriy Solodkyy solodon4

View GitHub Profile
@solodon4
solodon4 / func_tracer.hpp
Created June 24, 2019 02:04
func_tracer
#if defined(DEBUG)
#include <stdio.h>
#include <string.h>
#include <typeinfo>
struct func_tracer
{
__declspec(non_user_code)
func_tracer(const char* fn, const char* tp = nullptr, const void* thisptr = nullptr) : func_name(fn), this_type(tp), this_ptr(thisptr)
{
@solodon4
solodon4 / cocos_pop_transition.hpp
Created September 26, 2018 07:32
Cocos2d-x transition class adapter that allows one to pop scene with a transition non-intrusively
#include <type_traits>
#include <cocos2d.h>
#pragma once
//------------------------------------------------------------------------------
/// Transition adapter that pops current scene with transition passed as an argument.
///
/// Example: