Skip to content

Instantly share code, notes, and snippets.

View bbannier's full-sized avatar
πŸ’­
ヽ(。_Β°)γƒŽ 𝚒𝚘𝚞 πš˜πš—πš•πš’ 𝕐𝕆𝕃𝕆 πš˜πš—πšŒπšŽ 🍿

Benjamin Bannier bbannier

πŸ’­
ヽ(。_Β°)γƒŽ 𝚒𝚘𝚞 πš˜πš—πš•πš’ 𝕐𝕆𝕃𝕆 πš˜πš—πšŒπšŽ 🍿
View GitHub Profile
@bbannier
bbannier / iwyu-on-json.py
Last active October 6, 2015 15:02 — forked from rpavlik/iwyu-on-json.py
Run iwyu on compile_commands.json file created by CMake with CMAKE_EXPORT_COMPILE_COMMANDS
#!/usr/bin/env python
import json
import os
import subprocess
import sys
def run(cmd):
string_cmd = u" ".join(cmd)
@bbannier
bbannier / fenv.cpp
Created December 23, 2011 21:31
Enable floating point eceptions
#include <fenv.h>
// enable protection against fishy floating point arithmetic
void __attribute__ ((constructor)) trapfe() {
feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO);
}