Skip to content

Instantly share code, notes, and snippets.

Eleni Maria Stea hikiko

Block or report user

Report or block hikiko

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
@attractivechaos
attractivechaos / getopt.c
Created Feb 18, 2018
Implementation of getopt() and getopt_long() from musl
View getopt.c
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "getopt.h"
char *optarg;
int optind=1, opterr=1, optopt, __optpos, optreset=0;
#define optpos __optpos
View glfw-vulkan-hellotri.cpp
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <array>
#include <string>
#include <cstring>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
View glfw-vulkan-minimal.cpp
#include <cassert>
#include <iostream>
#include <vector>
#include <array>
#include <cstring>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define VKCHECK(x) if ((x) != VK_SUCCESS) fprintf(stderr, "Failure while executing Vulkan command at line %d\n", __LINE__)
You can’t perform that action at this time.