This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <uv.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#define PRINT_UV_ERR(prefix, code) do {\ | |
fflush(stdout);\ | |
fprintf(stderr, "%s: %s (%i): %s\n", prefix, uv_err_name(code), (int)(code), uv_strerror(code));\ | |
fflush(stderr);\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -std=c11 -Wall -Wpedantic -pedantic-errors -D_DEFAULT_SOURCE cleanup-test.c -o cleanup-test */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
struct Obj { int x; }; | |
void Obj_cleanup(struct Obj **obj_ref) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -std=c++1z -Wall -Wpedantic -pedantic-errors -O2 -D__USE_MINGW_ANSI_STDIO vis-ha.cpp -o vis-ha | |
#include <cstdio> | |
#include <typeinfo> | |
#include <vector> | |
#include <utility> | |
class Pass; |