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
// --- | |
// Copyright (c) 2015 Johan Sköld | |
// License: https://opensource.org/licenses/ISC | |
// --- | |
#include <cstdint> | |
#include <cstdio> | |
#pragma warning(push) | |
#pragma warning(disable: 4307) // 'operator' : integral constant overflow |
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
// Note: You probably do not want to use this in production code, as Promise is | |
// not supported by all browsers yet. | |
(function() { | |
"use strict"; | |
if (window.setImmediate) { | |
return; | |
} |
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
### | |
Copyright (c) 2012 rhoot <https://github.com/rhoot> | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it | |
freely, subject to the following restrictions: |
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
// Copyright (c) 2012 rhoot <https://github.com/rhoot> | |
// | |
// This software is provided 'as-is', without any express or implied | |
// warranty. In no event will the authors be held liable for any damages | |
// arising from the use of this software. | |
// | |
// Permission is granted to anyone to use this software for any purpose, | |
// including commercial applications, and to alter it and redistribute it | |
// freely, subject to the following restrictions: | |
// |
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
/** \file WinMain.cpp | |
* \author rhoot <https://github.com/rhoot> | |
* | |
* \brief Redirects calls from the windows specific WinMain() entry point to a more | |
* standard main() entry point defined someplace else. In debug builds, also | |
* allocates a console and redirects stdin, stderr, stdout to that console. | |
* | |
* \remark The std* stream redirection is based on RedirectIOToConsole(), as can be found | |
* at http://dslweb.nwnexus.com/~ast/dload/guicon.htm. | |
*/ |