Skip to content

Instantly share code, notes, and snippets.

View KallDrexx's full-sized avatar

Matthew Shapiro KallDrexx

  • Microsoft
View GitHub Profile
@KallDrexx
KallDrexx / msys2-SDL2-Setup.md
Created January 16, 2021 02:53 — forked from thales17/msys2-SDL2-Setup.md
msys2 sdl2 setup

Download and install msys2 64bit

Update msys2

  • Update msys2 64bit after install by running pacman -Syu if pacman needs to be updated you might have to close and reopen the terminal and run pacman -Syu again

Install build tools

  • pacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make

Compile Hello World

@KallDrexx
KallDrexx / vector assertions.rs
Created August 29, 2016 02:54 — forked from anonymous/playground.rs
Shared via Rust Playground
//#![feature(trace_macros)]
//trace_macros!(true);
macro_rules! assert_vec_match{
(@empty $vector:expr) => {
if $vector.len() > 0 {
panic!("Expected an empty vector, but the vector contained {} elements", $vector.len());
}
};