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
#include <stdio.h> | |
class Kiddo | |
{ | |
}; | |
class CrappyKid : public Kiddo | |
{ |
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
#include <iostream> | |
struct Test | |
{ | |
int mNumber; | |
constexpr Test(int aNumber) | |
: mNumber(aNumber) {} |
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
/mnt/c/ClangTesting/build/bin/clang++ -stdlib=libc++ -nostdinc++ -I/mnt/c/ClangTesting/build/include/c++/v1 -I/mnt/c/ClangTesting/build/include -L/mnt/c/ClangTesting/build/lib -Wl,-rpath,/mnt/c/ClangTesting/build/lib -Xclang -freflection -std=c++1z ReflectionTest.cpp |
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
function(YTE_Source_Group aRoot aTarget) | |
get_target_property(targetBinaryDir ${aTarget} BINARY_DIR) | |
get_target_property(targetSourceDir ${aTarget} SOURCE_DIR) | |
get_target_property(targetSources ${aTarget} SOURCES) | |
# This will determine if the given files are in a folder or not and separate | |
# them on that alone. | |
foreach(aFile ${targetSources}) | |
file(TO_CMAKE_PATH ${aFile} resultFile) | |
get_filename_component(nameComponent ${resultFile} NAME) |
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
//Given by beached from the include<c++> discord | |
// "if you want to be fancy, throw in a noexcept( std::is_nothrow_invokable_v<Function> )" | |
template<typename Function> | |
constexpr void do_n( size_t count, Function func ) { | |
while( count-- > 0 ) { | |
std::invoke( func ); | |
} | |
} | |
std::vector<int> v{} |
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
// PNG_TO_DDS_RGBA_EXPORTER.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <fstream> | |
#include <cinttypes> | |
#include <vector> | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" |