This file contains hidden or 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
/// @file | |
/// Numeric cast with a simple range check. | |
#ifndef NUMERIC_CAST_HPP_ | |
#define NUMERIC_CAST_HPP_ | |
#include <limits> | |
/// Cast a numeric value with a simple range check. | |
/// @param arg the numeric value to cast. |
This file contains hidden or 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
/// @file | |
/// Generic and safe strtod wrapper for Modern C++. | |
#ifndef TO_FLOATING_POINT_HPP_ | |
#define TO_FLOATING_POINT_HPP_ | |
#include <cwchar> | |
#include <cctype> | |
#include <string> | |
#include <type_traits> |
This file contains hidden or 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
/// @file | |
/// Generic and safe strtol wrapper for Modern C++. | |
#ifndef TO_INTEGER_HPP_ | |
#define TO_INTEGER_HPP_ | |
#include <cinttypes> | |
#include <cwchar> | |
#include <cctype> | |
#include <string> |
This file contains hidden or 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
/// @file | |
/// C++ wrapper for strtoimax and strtoumax. | |
#ifndef STOIMAX_ | |
#define STOIMAX_ | |
#include <cinttypes> | |
#include <string> | |
/// Interprets an unsigned integer value in the string. |
This file contains hidden or 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
configurations { | |
Toolset { | |
key: "PlatformToolset"; | |
choices: { v140, v140_xp, v120, v120_xp }; | |
}; | |
Configuration { | |
key: "Configuration"; | |
choices: { Release, Debug }; | |
}; |
This file contains hidden or 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
configurations { | |
Toolset { | |
key: "PlatformToolset"; | |
choices: { v140, v140_xp, v120, v120_xp }; | |
}; | |
Configuration { | |
key: "Configuration"; | |
choices: { Release, Debug }; | |
}; |
This file contains hidden or 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
configurations { | |
Toolset { | |
key: "PlatformToolset"; | |
choices: { v140, v140_xp, v120, v120_xp }; | |
}; | |
Configuration { | |
key: "Configuration"; | |
choices: { Release, Debug }; | |
}; |
This file contains hidden or 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
configurations { | |
Toolset { | |
key: "PlatformToolset"; | |
choices: { v140, v140_xp, v120, v120_xp }; | |
}; | |
Configuration { | |
key: "Configuration"; | |
choices: { Release, Debug }; | |
}; |
This file contains hidden or 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
cmake_minimum_required(VERSION 2.8) | |
project(midifile CXX) | |
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
set(VERSION "0.0.0") | |
include_directories(include) |
This file contains hidden or 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
if not bit then | |
bit = require("bit") | |
end | |
function Goemon3HanabiOrder(hanabi_num, initial_rng) | |
local next_rng = function(a, x) | |
local data_80 = { | |
0x18, 0xfb, 0x78, 0xd8, 0xc2, 0x30, 0xa2, 0xaf, | |
0x01, 0x9a, 0xc2, 0x30, 0x8b, 0xa9, 0x00, 0x00, | |
0x8f, 0x00, 0x00, 0x00, 0xa9, 0xfd, 0x1f, 0xa2, |