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
namespace FooBar { | |
public struct FileStream { | |
} | |
} | |
class Foo | |
{ | |
public System.IO.FileStream file; | |
} |
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
#define MAX2(a, b) ((a) > (b) ? (a) : (b)) | |
void ResolvePrefixPath(char* buf, wchar_t** prefix, bool* resolveFullPath) { | |
*resolveFullPath = true; | |
if (::isalpha(buf[0]) && !::IsDBCSLeadByte(buf[0]) && buf[1] == ':' && buf[2] == '\\') { | |
*prefix = const_cast<wchar_t*>(L"\\\\?\\"); | |
} | |
else if (buf[0] == '\\' && buf[1] == '\\') { | |
if (buf[2] == '?' && buf[3] == '\\') { | |
*prefix = const_cast<wchar_t*>(L""); |
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
// TestMakeSire.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <windows.h> | |
#include <ctype.h> | |
#include <shlwapi.h> | |
#pragma comment(lib, "Shlwapi.lib") |
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
#include <dlfcn.h> | |
#include <stdlib.h> | |
#include <iostream> | |
#include <atomic> | |
#include <vector> | |
#include <cassert> | |
#define CoTaskMemAlloc malloc | |
#define CoTaskMemFree free |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
namespace TestEventTracking | |
{ | |
public class MatchStartedEventArgs : EventArgs |
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 (turnValue <= STICK_MAX) | |
turnValue = 0; | |
ReportData->RX = ++turnValue; | |
ReportData->RY = turnValue; |
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
#include "Joystick.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef enum { | |
UP, | |
DOWN, | |
LEFT, | |
RIGHT, |
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
#include "Joystick.h" | |
#include <stdlib.h> | |
//#include <corecrt_malloc.h> | |
typedef enum { | |
UP, | |
DOWN, | |
LEFT, | |
RIGHT, | |
UP_LEFT, |
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
#include <iostream> | |
#include <vector> | |
#include <variant> | |
#include <functional> | |
struct Foo | |
{ | |
int handle = {}; | |
}; |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Tilemaps; | |
public class CameraMover : MonoBehaviour | |
{ | |
public Tilemap map; | |
public Grid grid; | |
public int cameraMarin = 50; |
NewerOlder