Skip to content

Instantly share code, notes, and snippets.

@dpjudas
dpjudas / jit_runtime.cpp
Created January 2, 2019 14:40
Asmjit unwind info registration and stack walking code for Windows, Linux and macOS
/*
Asmjit unwind info registration and stack walking code for Windows, Linux and macOS
Copyright (c) 2018, Magnus Norddahl
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications.
@dpjudas
dpjudas / format.cpp
Created October 15, 2016 22:02
C++11 formatting example using variadic template args
/*
Program output:
mbn@cuba:~/Development$ clang -std=c++11 -o format format.cpp -lstdc++
mbn@cuba:~/Development$ ./format
This is a foobar string with a 666 number
This is a moobar string with a 333 number
This is a foobar string with moobar and woobar with a 333 number
*/