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
#!/usr/bin/env python3 | |
from dataclasses import dataclass | |
import sys | |
@dataclass | |
class Pos: | |
x: int | |
y: int | |
z: int |
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
// Small multi-threaded C++11 program to reproduce the ENet bug reported in | |
// https://github.com/lsalzman/enet/issues/198 | |
// | |
// Compile via: | |
// | |
// g++ -Wall --std=c++11 -Ienet ./enet_demo.cc -o ./enet_demo -lenet | |
#include <atomic> | |
#include <cassert> | |
#include <enet/enet.h> |