Skip to content

Instantly share code, notes, and snippets.

View StarJade-Park's full-sized avatar
😃
Hi

0x0d5 StarJade-Park

😃
Hi
View GitHub Profile
# Build a Visual Studio C++ project
# VS2022 Community, x64, release
# Check that a path to a .vcxproj file was provided
if ($args.Length -eq 0) {
Write-Output "No project file specified"
exit 1
}
# Set the path to the .vcxproj file
🌞 Morning 20 commits █▋░░░░░░░░░░░░░░░░░░░ 7.8%
🌆 Daytime 68 commits █████▌░░░░░░░░░░░░░░░ 26.7%
🌃 Evening 126 commits ██████████▍░░░░░░░░░░ 49.4%
🌙 Night 41 commits ███▍░░░░░░░░░░░░░░░░░ 16.1%
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
</head>
<body>
<canvas id="canvas" width="750" height="750" style="border:1px solid lightgrey;"></canvas>
<script>
@StarJade-Park
StarJade-Park / GetClassNameAndMethodName.cpp
Created January 28, 2020 04:32
How to get class name and method name in MSVC
#include <iostream>
#include <string>
using namespace std;
// * REFERENCE LINK : https://stackoverflow.com/questions/1666802/is-there-a-class-macro-in-c
static inline std::string className(const std::string& prettyFunction)
{
size_t colons = prettyFunction.find("::");
if ( colons == std::string::npos )
// stl의 conditional, conditional_type을 현재 사용중인 컨벤션에 맞춰 이름만 수정한 버전임.
#pragma once
// Struct template conditional
// - type is
// - 1. Type_1 for Expression
// - 2. Type_2 for assumed !Expression
template<bool Expression, class Type_1, class Type_2>
struct TConditional
{
#include "DeltaTime.hpp"
Timer::Time Timer::s_MainTimer = Timer::Time();
// Reference.h
#ifndef __REFERENCE_H__
#define __REFERENCE_H__
class Reference
{
template<typename T>
friend class shared_ptr;
protected:
#define _QUOTE(x) #x
#define QUOTE(x) _QUOTE(x)
#define _MUST_TODO(msg) static_assert(false, QUOTE(msg));
#define MUST_TODO(msg) static_assert(false, msg);
// example
MUST_TODO("JUST DO IT !!");
void Foo()
{
#include <cassert>
#define assert_false assert(false)
#define STATIC_TODO static_assert(false, "TODO")
#ifndef C_PLUS_PLUS_VERSION
#define C_11_UNDER 199711L
#define C_11_AFTER 201103L
#define C_14_AFTER 201402L
#define C_17_AFTER 201703L
#include "pch.h"
#include <iostream>
#include <memory>
#include <unordered_set>
using namespace std;
template<typename Object>
void Deleter(Object* obj)
{