Skip to content

Instantly share code, notes, and snippets.

Lectem

Block or report user

Report or block Lectem

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 pre-commit-clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by rene.milk@wwu.de
# This file is part of a set of unofficial pre-commit hooks available
# at github.
View GetNetworkOpt-tests.c
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // memset
#include <malloc.h> // memalign
#include <unistd.h> // close
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
@Lectem
Lectem / .clang-format
Last active Oct 3, 2015
ctrulib guide style draft
View .clang-format
---
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
IndentCaseLabels: true
AlignConsecutiveAssignments: true
AlignEscapedNewlinesLeft: true
AlignOperands: true
You can’t perform that action at this time.