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
// TU 1 | |
// mod.h - importable, header unit | |
#define HEADER 1 | |
inline int foo() { | |
return HEADER; | |
} | |
//------------------- |
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
#ifdef module | |
// use it as header file | |
# undef module | |
# define EXPORT | |
# define EXPORTGROUP extern "C++" | |
#else | |
# if !defined(__cpp_modules) || defined(JANUS_BACKWARDS) | |
// use it as header file |
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
#if defined(__cpp_modules) && !defined(JANUS_BACKWARDS) | |
#define EXPORT export | |
#define EXPORTGROUP export | |
#define EXPORTMODULE | |
#else | |
#pragma once | |
#define EXPORT | |
#define EXPORTGROUP extern "C++" | |
#endif |
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
/* | |
* Random-Number Utilities (randutil) | |
* Addresses common issues with C++11 random number generation. | |
* Makes good seeding easier, and makes using RNGs easy while retaining | |
* all the power. | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 Melissa E. O'Neill | |
* |