Skip to content

Instantly share code, notes, and snippets.

Klemens Morgenstern klemens-morgenstern

Block or report user

Report or block klemens-morgenstern

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ctlex.hpp
#ifndef CTLEX_HPP
#define CTLEX_HPP
#include <ctre.hpp>
#include <string_view>
#include <algorithm>
#include <stdexcept>
namespace ctlex
{
View ChaiScriptSyntaxHighlighter.hpp
/*
* ChaiScriptSyntaxHighlighter.hpp
*
* Created on: 21.10.2016
* Author: klemens.morgenstern
*/
#ifndef WIDGETS_CHAISCRIPTSYNTAXHIGHLIGHTER_HPP_
#define WIDGETS_CHAISCRIPTSYNTAXHIGHLIGHTER_HPP_
View ChaiScriptSyntaxHighlighter.cpp
/*
* ChaiScriptSyntaxHighlighter.cpp
*
* Created on: 21.10.2016
* Author: klemens.morgenstern
*/
#include <widgets/ChaiScriptSyntaxHighlighter.hpp>
namespace widgets
View constexpr_variant.cpp
#include <system_error>
#include <iostream>
#include <cstring>
#include <boost/type_index/ctti_type_index.hpp>
#include <boost/utility/in_place_factory.hpp>
#include <boost/utility/typed_in_place_factory.hpp>
#include <boost/hana/front.hpp>
#include <boost/hana/back.hpp>
@klemens-morgenstern
klemens-morgenstern / stubbing.cpp
Created Feb 18, 2016
C++ stubbing via --wrap
View stubbing.cpp
//_ZN1X1fEv
struct stubs
{
typedef void(stubs::*_ZN1X1fEv_t)();
static _ZN1X1fEv_t _ZN1X1fEv_p;
template<typename T, typename ... Args>
static void set__ZN1X1fEv(void (T::*p)(Args...))
{
_ZN1X1fEv_p = reinterpret_cast<_ZN1X1fEv_t>(p);
@klemens-morgenstern
klemens-morgenstern / constexpr_join_array.cpp
Created Aug 27, 2015
A simple way to join two arrays constexpr
View constexpr_join_array.cpp
namespace detail
{
template<std::size_t ... Size>
struct num_tuple
{
};
template<std::size_t Prepend, typename T>
struct appender {};
You can’t perform that action at this time.